m-sorted-array

时间:2021-04-27 21:54:26
【文件属性】:
文件名称:m-sorted-array
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-27 21:54:26
JavaScript m排序数组 插入,查找和删除排序数组的实现 安装 $ npm install --save m-sorted-array 用法 var SortedArray = require ( 'm-sorted-array' ) ; var SortedArray = require ( './lib' ) ; var sortedArray = SortedArray ( [ 8 , 3 , 2 , 9 , 1 ] ) ; console . log ( sortedArray . array ) ; // [1, 2, 3, 8, 9] sortedArray . insert ( 5 ) ; console . log ( sortedArray . array ) ; // [1, 2, 3, 5, 8, 9] console . log ( sortedArray . find ( 4
【文件预览】:
m-sorted-array-master
----.gitignore(27B)
----.babelrc(3B)
----.eslintrc(2KB)
----package.json(911B)
----.travis.yml(60B)
----gulpfile.js(2KB)
----LICENSE(567B)
----README.md(1KB)
----lib()
--------index.js(1KB)
----.gitattributes(12B)
----test()
--------index.js(3KB)
----.editorconfig(171B)

网友评论