Trying out ES6 Symbol.Iterator features for generating fibonacci series.
npm install
npm start
Has two types of genarators.
- One using
next()
method - One using a function pointer with
yield
- Comparing chaining of operations over a fibonacci series using
.map()
,.filter()
and.forEach()
- Lodash: Using a static list for lodash as it has no support to iterate over
Symbol.Iterator
. - ES6: Doesn't give
map
,filter
andforEach
and hence usingwu.js
for iterating over lazy evaluated streams.