underdash icon indicating copy to clipboard operation
underdash copied to clipboard

Add browser version of flatten

Open Snapstromegon opened this issue 3 years ago • 0 comments

Flatten is available in the Browser as Array.prototype.flat(). This PR switches to that version and at the same time adds support for a depth parameter (because the browser one supports it), so it's now compatible with the underscore version.

Snapstromegon avatar Jan 31 '22 22:01 Snapstromegon