All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.modules.flatten.js Maven / Gradle / Ivy

The newest version!
import _flatten from './_flatten.js';

// Flatten out an array, either recursively (by default), or up to `depth`.
// Passing `true` or `false` as `depth` means `1` or `Infinity`, respectively.
export default function flatten(array, depth) {
  return _flatten(array, depth, false);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy