Fix the description to be a bit more proper
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Flattens an array.
|
Flattens an array.
|
||||||
|
|
||||||
Using a new array we concatinate it with the spread input array causing a shallow flatten
|
Using a new array we concatinate it with the spread input array causing a shallow denesting of any contained arrays
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const flatten = arr => [ ].concat( ...arr );
|
const flatten = arr => [ ].concat( ...arr );
|
||||||
|
|||||||
Reference in New Issue
Block a user