Skip to content

aswinkarthik/es6-fibonacci-series

Repository files navigation

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.

About

Using ES6 features for computing fibonacci

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published