Mission Control Dashboard - Initial implementation
This commit is contained in:
12
node_modules/motion-utils/dist/es/pipe.mjs
generated
vendored
Normal file
12
node_modules/motion-utils/dist/es/pipe.mjs
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Pipe
|
||||
* Compose other transformers to run linearily
|
||||
* pipe(min(20), max(40))
|
||||
* @param {...functions} transformers
|
||||
* @return {function}
|
||||
*/
|
||||
const combineFunctions = (a, b) => (v) => b(a(v));
|
||||
const pipe = (...transformers) => transformers.reduce(combineFunctions);
|
||||
|
||||
export { pipe };
|
||||
//# sourceMappingURL=pipe.mjs.map
|
||||
Reference in New Issue
Block a user