UNPKG
bonsai-analyzer
Version:
latest (0.4.0-alpha4)
0.4.0-alpha4
0.4.0-alpha3
0.4.0-alpha2
0.3.0
0.2.0
0.2.0-alpha.1
0.1.0
Trim your dependency tree.
github.com/pinterest/bonsai
pinterest/bonsai
bonsai-analyzer
/
src
/
utils
/
flatten.js
10 lines
(8 loc)
•
140 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** *
@flow
*/
export
default
function
flatten
(
arrOfArray:
Array
<
Array
<*>>,
):
Array
<*> {
return
[].
concat
.
apply
([], arrOfArray); }