1.0.2 • Published 2 years ago
nv-array-spread v1.0.2
nv-array-spread
install
- npm install nv-array-spread
splitted
usage
const x = require("nv-array-spread");
example
0
> a = [1,2,[3,4],5,[6,7]]
[ 1, 2, [ 3, 4 ], 5, [ 6, 7 ] ]
> x.spread_at(a,2)
[ 1, 2, 3, 4, 5, [ 6, 7 ] ]
> a
[ 1, 2, 3, 4, 5, [ 6, 7 ] ]
> x.unspread(a,2,4)
[ 1, 2, [ 3, 4 ], 5, [ 6, 7 ] ]
>
> a
[ 1, 2, [ 3, 4 ], 5, [ 6, 7 ] ]
>
0_0
0_1
1
1_0
1_1
METHODS
APIS
LICENSE
- ISC
1.0.2
2 years ago