@ject/pipe
Advanced tools
Comparing version 0.0.7 to 0.0.9
@@ -23,16 +23,6 @@ 'use strict'; | ||
let l = funcs.length; | ||
switch (l) { | ||
case 0: | ||
return void 0; | ||
case 1: | ||
return funcs[0]; | ||
case 2: | ||
return duopipe.apply(null, funcs); | ||
default: | ||
return pipemany.apply(null, funcs); | ||
} | ||
if (l === 0) return void 0; | ||
if (l === 1) return funcs[0]; | ||
if (l === 2) return duopipe.apply(null, funcs); | ||
return pipemany.apply(null, funcs); | ||
}; | ||
@@ -39,0 +29,0 @@ |
@@ -19,18 +19,8 @@ const duopipe = (alpha, beta) => { | ||
let l = funcs.length; | ||
switch (l) { | ||
case 0: | ||
return void 0; | ||
case 1: | ||
return funcs[0]; | ||
case 2: | ||
return duopipe.apply(null, funcs); | ||
default: | ||
return pipemany.apply(null, funcs); | ||
} | ||
if (l === 0) return void 0; | ||
if (l === 1) return funcs[0]; | ||
if (l === 2) return duopipe.apply(null, funcs); | ||
return pipemany.apply(null, funcs); | ||
}; | ||
export { duopipe, pipe }; |
{ | ||
"name": "@ject/pipe", | ||
"version": "0.0.7", | ||
"version": "0.0.9", | ||
"description": "Util for functions", | ||
@@ -31,3 +31,3 @@ "main": "dist/index.cjs.js", | ||
"homepage": "https://github.com/hoyeungw/ject#readme", | ||
"gitHead": "5f5af8ef9203ca0a67074491d632ac4caece8d3e" | ||
"gitHead": "09ab70b01ef0359753825bbb8c980cf6603740b1" | ||
} |
4489
45