/** * Returns a new list by pulling every item out of it (and all its sub-arrays) * and putting them in a new array, depth-first. * * @param {Array} arr The array to consider. * @return {Array} The flattened list. * @example * * flatten([1, 2, [3, 4], 5, [6, [7, 8, [9, [10, 11], 12]]]]); * //=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] */ declare const flatten: (arr?: ArrayLike) => T[]; export default flatten;