UNPKG

underscore-es

Version:

javaScript's functional programming helper library for ES6 and beyond.

9 lines (7 loc) 273 B
// `_flatten` : an array's function // --------------------------------- import {flatten} from './_internal'; // Flatten out an array, either recursively (by default), or just one level. export default function (array, shallow) { return flatten(array, shallow, false); }