文件名称:guarded-array:边界检查数组
文件大小:4KB
文件格式:ZIP
更新时间:2024-07-26 00:20:08
JavaScript
保护阵列 用于帮助调试的慢速边界检查数组。 例子 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
----.gitignore(109B)
----package.json(627B)
----guarded-array.js(1KB)
----LICENSE(1KB)
----README.md(2KB)
----example()
--------example.js(880B)