Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 632 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 632 Bytes

ES6 Symbol.Iterator

Trying out ES6 Symbol.Iterator features for generating fibonacci series.

Usage

  • npm install
  • npm start

More information

iterables.js

Has two types of genarators.

  • One using next() method
  • One using a function pointer with yield

lodash_vs_es6_gen.js

  • 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 and forEach and hence using wu.js for iterating over lazy evaluated streams.