source: node_modules/es-toolkit/dist/compat/util/over.js@ a762898

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

Added visualizations

  • Property mode set to 100644
File size: 455 bytes
RevLine 
[a762898]1'use strict';
2
3Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
5const iteratee = require('./iteratee.js');
6
7function over(...iteratees) {
8 if (iteratees.length === 1 && Array.isArray(iteratees[0])) {
9 iteratees = iteratees[0];
10 }
11 const funcs = iteratees.map(item => iteratee.iteratee(item));
12 return function (...args) {
13 return funcs.map(func => func.apply(this, args));
14 };
15}
16
17exports.over = over;
Note: See TracBrowser for help on using the repository browser.