Skip to content

gulewei/pipe-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

A Borwser Compative Pipeline Function, Write In ES5

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'

About

A Borwser Compative Pipeline Function, Write In ES5

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published