import predicateType from '../helpers/predicateType'; /** * Creates an array or object of values by running each element in `collection` through `iteratee`. * * @since 1.0.0 * * @template T * @param {Array | Object} collection - The collection to iterate over. * @param {Function} [iteratee=identity] - The function invoked per iteration. * * @returns {T} - Returns the new mapped array or object. * * @example * * map([1, 2, 3], n => n * 2); * // => [2, 4, 6] * * map({a: 1, b: 2, c: 3}, n => n * 2); * // => {a: 2, b: 4, c: 6} */ declare const map: (collection: Object | T[], iteratee?: predicateType) => T; export default map;