summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/lodash/array/flatten.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/lodash/array/flatten.js')
-rw-r--r--deps/npm/node_modules/lodash/array/flatten.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/deps/npm/node_modules/lodash/array/flatten.js b/deps/npm/node_modules/lodash/array/flatten.js
deleted file mode 100644
index dc2eff8686..0000000000
--- a/deps/npm/node_modules/lodash/array/flatten.js
+++ /dev/null
@@ -1,32 +0,0 @@
-var baseFlatten = require('../internal/baseFlatten'),
- isIterateeCall = require('../internal/isIterateeCall');
-
-/**
- * Flattens a nested array. If `isDeep` is `true` the array is recursively
- * flattened, otherwise it's only flattened a single level.
- *
- * @static
- * @memberOf _
- * @category Array
- * @param {Array} array The array to flatten.
- * @param {boolean} [isDeep] Specify a deep flatten.
- * @param- {Object} [guard] Enables use as a callback for functions like `_.map`.
- * @returns {Array} Returns the new flattened array.
- * @example
- *
- * _.flatten([1, [2, 3, [4]]]);
- * // => [1, 2, 3, [4]]
- *
- * // using `isDeep`
- * _.flatten([1, [2, 3, [4]]], true);
- * // => [1, 2, 3, 4]
- */
-function flatten(array, isDeep, guard) {
- var length = array ? array.length : 0;
- if (guard && isIterateeCall(array, isDeep, guard)) {
- isDeep = false;
- }
- return length ? baseFlatten(array, isDeep) : [];
-}
-
-module.exports = flatten;