No Description

flatten.js 299B

123456789
  1. var _flatten = require('./_flatten.js');
  2. // Flatten out an array, either recursively (by default), or up to `depth`.
  3. // Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.
  4. function flatten(array, depth) {
  5. return _flatten(array, depth, false);
  6. }
  7. module.exports = flatten;