initial commit - far from runnable
This commit is contained in:
commit
db057ce342
8614 changed files with 1032171 additions and 0 deletions
16
node_modules/rxjs/dist/esm/internal/util/pipe.js
generated
vendored
Normal file
16
node_modules/rxjs/dist/esm/internal/util/pipe.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { identity } from './identity';
|
||||
export function pipe(...fns) {
|
||||
return pipeFromArray(fns);
|
||||
}
|
||||
export function pipeFromArray(fns) {
|
||||
if (fns.length === 0) {
|
||||
return identity;
|
||||
}
|
||||
if (fns.length === 1) {
|
||||
return fns[0];
|
||||
}
|
||||
return function piped(input) {
|
||||
return fns.reduce((prev, fn) => fn(prev), input);
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=pipe.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue