@newdash/newdash
Version:
javascript/typescript utility library
11 lines (10 loc) • 386 B
TypeScript
export default baseMap;
/**
* The base implementation of `map` without support for iteratee shorthands.
*
* @private
* @param {Array|Object} collection The collection to iterate over.
* @param {Function} iteratee The function invoked per iteration.
* @returns {Array} Returns the new mapped array.
*/
declare function baseMap(collection: any[] | any, iteratee: Function): any[];