인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

ex452255's profile image
ex452255

asked

Functional Programming with JavaScript (ES5)

Pipeline, _go, _pipe, arrow functions

pipe 함수에 질문있습니다

Written on

·

252

0

안녕하세요 강사님 수업 정말 잘 듣고 있습니다. 

강의 듣던 도중 질문이있어 글 남겨봅니다. pipe함수에서 return  _reduce(fns, function(arg, fn) {

return fn(arg);}, arg);

이 부분에서 fn는

_go(users,

_filter(function(user) {return user.age >= 30; }),

_map(_get('name')),

console.log); 

여기에 적용시키면 users를 제외한 필터 맵 콘솔 로그가 되는게 맞을까요?

함수형-프로그래밍javascript

Answer 1

0

mduniv님의 프로필 이미지
mduniv
Instructor

네 맞습니다 :)

ex452255's profile image
ex452255

asked

Ask a question