source: node_modules/es-toolkit/dist/compat/function/flow.js@ ba17441

Last change on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 457 bytes
Line 
1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const flatten = require('../../array/flatten.js');
6const flow$1 = require('../../function/flow.js');
7
8function flow(...funcs) {
9 const flattenFuncs = flatten.flatten(funcs, 1);
10 if (flattenFuncs.some(func => typeof func !== 'function')) {
11 throw new TypeError('Expected a function');
12 }
13 return flow$1.flow(...flattenFuncs);
14}
15
16exports.flow = flow;
Note: See TracBrowser for help on using the repository browser.