Update flatten.md

This commit is contained in:
Angelos Chalaris
2017-12-23 12:00:38 +02:00
committed by GitHub
parent d9be9ce0b7
commit 74e674aa52

View File

@ -2,7 +2,7 @@
Flattens an array.
Using a new array we concatinate it with the spread input array causing a shallow denesting of any contained arrays
Use a new array and concatenate it with the spread input array causing a shallow denesting of any contained arrays.
```js
const flatten = arr => [ ].concat( ...arr );