강의

멘토링

로드맵

Inflearn Community Q&A

No author

This post's author information has been deleted.

Functional Programming and JavaScript ES6+

Iterable-centric programming practical code

배열에서 몇개만 취득하는 것이 아닐 경우

Written on

·

364

0

안녕하세요, 강사님 :)
강의내용에서 age<20, take(3) 처럼 3개만 뽑는 경우엔 지연성으로 인해 3개만 뽑고 뒤에 배열들은 탐색하지 않겠지만

age<20의 사용자를 모두 뽑는 경우엔 이렇게 지연성으로 하나 일반 map,filter를 사용하나 성능상에 차이가 없는 것이죠?

함수형-프로그래밍javascript

Quiz

What is the main result characteristic that is different between `reduce` or `take` functions and `map` or `filter` functions?

Creates a new array.

Returns an intermediate result.

Makes the final result.

Change the input order.

Answer 1

0

mduniv님의 프로필 이미지
mduniv
Instructor

네 그렇습니다 :)

No author

This post's author information has been deleted.

Ask a question