source: node_modules/es-toolkit/dist/compat/util/over.mjs

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

Added visualizations

  • Property mode set to 100644
File size: 353 bytes
Line 
1import { iteratee } from './iteratee.mjs';
2
3function over(...iteratees) {
4 if (iteratees.length === 1 && Array.isArray(iteratees[0])) {
5 iteratees = iteratees[0];
6 }
7 const funcs = iteratees.map(item => iteratee(item));
8 return function (...args) {
9 return funcs.map(func => func.apply(this, args));
10 };
11}
12
13export { over };
Note: See TracBrowser for help on using the repository browser.