mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Bump to v4.7.0.
This commit is contained in:
10
flatMap.js
10
flatMap.js
@@ -1,15 +1,17 @@
|
||||
define(['./_baseFlatten', './map'], function(baseFlatten, map) {
|
||||
|
||||
/**
|
||||
* Creates an array of flattened values by running each element in `collection`
|
||||
* through `iteratee` and concating its result to the other mapped values.
|
||||
* The iteratee is invoked with three arguments: (value, index|key, collection).
|
||||
* Creates a flattened array of values by running each element in `collection`
|
||||
* through `iteratee` and flattening the mapped results. The iteratee is
|
||||
* invoked with three arguments: (value, index|key, collection).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Collection
|
||||
* @param {Array|Object} collection The collection to iterate over.
|
||||
* @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
|
||||
* @param {Array|Function|Object|string} [iteratee=_.identity]
|
||||
* The function invoked per iteration.
|
||||
* @returns {Array} Returns the new flattened array.
|
||||
* @example
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user