yield-list
creat a doubly linked list, using a simple comands.
and have a iterator map too!
I will help if you have any difficulty =)
Contact me by github:heyderpd. I'll be glad to help you.
Example:
import yieldList from 'yield-list'
const Arr = [1, 2, 3]
const list = yieldList(Arr)
const a = {a: 1}
const b = {b: 2}
const c = {c: 2}
const list = yieldList()
list
.push(a)
.push(b)
.push(c)
const arr = list.map()
const arr = list.map.reverse()
iterator = list.map.yield()
iterator.next().value
iterator.next().value
iterator.next().value
iterator = list.map.yield.circular()