array-keyed-map:JS数据结构,例如Map,但是键是数组

时间:2021-04-29 11:50:01
【文件属性】:
文件名称:array-keyed-map:JS数据结构,例如Map,但是键是数组
文件大小:48KB
文件格式:ZIP
更新时间:2021-04-29 11:50:01
javascript map data-structure array path 阵列键映射 一个键为任意值的数组“路径”的映射。 使用键中对象的标识(就像Map使用单个键一样); 不是一些脆弱的字符串序列化黑客。 const ArrayKeyedMap = require ( 'array-keyed-map' ) const m = new ArrayKeyedMap ( ) const obj = { x : true } const objIdentical = { x : true } const fun = function ( ) { } const reg = / regexp / // Set values m . set ( [ obj ] , 1 ) m . set ( [ obj , fun ] , 2 ) m . set ( [ reg , reg , true ] , 3 ) m . set ( [ ]
【文件预览】:
array-keyed-map-master
----.gitignore(27B)
----package.json(849B)
----main.js(4KB)
----package-lock.json(140KB)
----.travis.yml(121B)
----LICENSE(726B)
----test.js(7KB)
----readme.md(6KB)
----benchmark()
--------set.js(467B)
--------entries.js(456B)
--------get.js(410B)
--------has.js(410B)
--------hasPrefix.js(422B)
--------delete.js(416B)

网友评论