array-flatten:用JavaScript展平多维数组

时间:2021-05-02 13:45:42
【文件属性】:
文件名称:array-flatten:用JavaScript展平多维数组
文件大小:111KB
文件格式:ZIP
更新时间:2021-05-02 13:45:42
javascript array-flatten arrayish JavaScript 阵列展平 展平嵌套数组。 安装 npm install array-flatten --save 用法 import { flatten } from "array-flatten" ; flatten ( [ 1 , [ 2 , [ 3 , [ 4 , [ 5 ] , 6 ] , 7 ] , 8 ] , 9 ] ) ; //=> [1, 2, 3, 4, 5, 6, 7, 8, 9] ( function ( ) { flatten ( arguments ) ; //=> [1, 2, 3] } ) ( 1 , [ 2 , 3 ] ) ; 执照 麻省理工学院
【文件预览】:
array-flatten-master
----src()
--------index.ts(869B)
--------index.spec.ts(1KB)
----benchmark()
--------fixtures()
--------code()
--------README.md(344B)
--------index.js(150B)
----.travis.yml(227B)
----tsconfig.json(307B)
----LICENSE(1KB)
----tslint.json(70B)
----README.md(1KB)
----tsconfig.es2015.json(141B)
----.editorconfig(199B)
----.gitignore(76B)
----package-lock.json(400KB)
----package.json(2KB)

网友评论