var pipe = require('pipeline')
var a = function (_) { return _ + 'a' }
var b = function (_) { return _ + 'b' }
var pipeFn = pipe(a, b)
pipe('1') // '1ab'
pipe('2') // '2ab'
var c = function (x, y) { return x + y }
var pipeFn2 = pipe(c, a, b)
pipe(1, 2) // '3ab'
pipe(2, 4) // '6ab'
gulewei/pipe-helper
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A Borwser Compative Pipeline Function, Write In ES5
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published