1.0.1 • Published 1 year ago
nv-facutil-pkg-pool v1.0.1
nv-facutil-pkg-pool
- only support string data
install
- npm install nv-facutil-pkg-pool
usage
const x = require("nv-facutil-pkg-pool");
example
> pool = x()
Pool {}
> pool.add(1,3,"a")
> pool.add(1,2,"b")
> pool.add(1,1,"c")
> pool.add(1,0,"d")
> pool
Pool { '1': { '0': 'd', '1': 'c', '2': 'b', '3': 'a' } }
> pool.take(1)
'dcba'
>
> pool
Pool {}
>
METHODS
add(id,seq,data) {
del(id,seq) {
take(id) {
APIS
LICENSE
- ISC
1.0.1
1 year ago