2 * This method is the wrapper version of `_.flatMap`.
7 * @param {Function|Object|string} [iteratee=_.identity] The function invoked per iteration.
8 * @returns {Object} Returns the new `lodash` wrapper instance.
11 * function duplicate(n) {
15 * _([1, 2]).flatMap(duplicate).value();
18 function wrapperFlatMap(iteratee) {
19 return this.map(iteratee).flatten();
22 module.exports = wrapperFlatMap;