A library to allow easy method chaining with es6 proxies.
npm install lazy-chain then require the file
const LazyChain =
Or include the direct file
//Create a new LazyListconst LazyChain =const lazy = //Or use new
Chaining runs a series of methods on the fed object, and then returns the modified object
//Chain together a series of methodslazylazylazy//Feed the chain an objectlazy //Becomes [3, 4, 5, 7, 8]lazy //Becomes ['hello', true, 7, 8]
Piping runs a series of methods, running each sequencial method on the previous methods output, and then returns the output of the last method.
//Chain together some methodslazylazy//Feed the pipeline the first valuelazy //Becomes [5, 6]lazy //Becomes [8, 10]