Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 378 Bytes

.verb.md

File metadata and controls

16 lines (10 loc) · 378 Bytes

Install

{%= include("install-bower", {save: true}) %}

Usage

var flatten = require('{%= name %}');

flatten(['a', ['b', ['c']], 'd', ['e']]);
//=> ['a', 'b', 'c', 'd', 'e']

Why another flatten utility?

I wanted the fastest implementation I could find, with implementation choices that should work for 95% of use cases, but no cruft to cover the other 5%.