underdash
underdash copied to clipboard
Add browser version of flatten
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.