guarded array:边界检查数组
保护阵列用于帮助调试的慢速边界检查数组。例子var guard = require ( 'guarded-array' ) //First create any old array var array = [ 0 , 1 , 2 , 3 , 4 , 5 ] //Then we protect it using guard! var guardedArray = guard ( array ) //The guarded array works just like a normal array: console . log ( guardedArray . length , guardedArray . slice ( ) ) //Accessing elements in the middle of array is ok guardedArray [ 3 ] = 100 //Wr
文件列表
guarded-array-master.zip
(预估有个6文件)
guarded-array-master
.gitignore
109B
package.json
627B
guarded-array.js
1KB
LICENSE
1KB
README.md
2KB
example
example.js
880B
暂无评论