1.0.1 • Published 3 years ago
nv-facutil-ref-pool v1.0.1
nv-facutil-ref-pool
- nv-facutil-ref-pool
install
- npm install nv-facutil-ref-pool
usage
example
const {opool,swc1,swc1n} = require("nv-facutil-ref-pool")
> opool.size_;
0
> var ary = opool.ary(4);
undefined
> ary
[ <4 empty items> ]
> opool.size_
1
> ary.___id
'KuVPwnA1QpW6li8ABl9NunnhEoxdvAYnzlqaRP8s7Gp9y3BOtTtQN-FxPOBEO6l_'
>
> ary.___release
'KuVPwnA1QpW6li8ABl9NunnhEoxdvAYnzlqaRP8s7Gp9y3BOtTtQN-FxPOBEO6l_'
>
> ary.___id
undefined
> opool.size_
0
> swc1.add(100)
0
> swc1.take(0)
100
> swc1.has(0)
false
> swc1n.add(9999)
0n
> swc1n.add(9999)
1n
> swc1n.add(9999)
2n
> swc1n.has(2n)
true
> swc1n.take(2n)
9999
> swc1n.has(2n)
false
>
API
LICENSE
- ISC
1.0.1
3 years ago