mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-06-13 22:15:25 +00:00
update
This commit is contained in:
18
node_modules/rxjs/_esm2015/util/pipe.js
generated
vendored
Normal file
18
node_modules/rxjs/_esm2015/util/pipe.js
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
import { noop } from './noop';
|
||||
/* tslint:enable:max-line-length */
|
||||
export function pipe(...fns) {
|
||||
return pipeFromArray(fns);
|
||||
}
|
||||
/* @internal */
|
||||
export function pipeFromArray(fns) {
|
||||
if (!fns) {
|
||||
return noop;
|
||||
}
|
||||
if (fns.length === 1) {
|
||||
return fns[0];
|
||||
}
|
||||
return function piped(input) {
|
||||
return fns.reduce((prev, fn) => fn(prev), input);
|
||||
};
|
||||
}
|
||||
//# sourceMappingURL=pipe.js.map
|
Reference in New Issue
Block a user