fj-indexify:索引数组

时间:2021-06-22 21:01:19
【文件属性】:
文件名称:fj-indexify:索引数组
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-22 21:01:19
JavaScript fj-indexify 索引数组 安装 npm install fj-indexify --save 用法 var indexify = require ( 'fj-indexify' ) ; const a = [ "foo" , "bar" , "moo" ] ; const aIdxd = indexify ( a ) ; console . log ( aIdxd ) ; // => [[0, "foo"], [1, "bar"], [2, "moo"]] map ( ( i ) => i [ 0 ] + i [ 1 ] , aIdxd ) ; // => ["0foo", "1bar", "2moo"]
【文件预览】:
fj-indexify-master
----.jshintrc(611B)
----.gitignore(933B)
----package.json(875B)
----.travis.yml(116B)
----gulpfile.js(691B)
----index.es6(167B)
----LICENSE(1KB)
----CONTRIBUTING.markdown(330B)
----index.js(313B)
----test.js(607B)
----README.markdown(534B)
----test.es6(403B)
----.editorconfig(197B)

网友评论