nv-facutil-nt
v1.0.2
Published
nv-facutil-nt ======================= - SLOW named-tuple, for config using
Downloads
2
Readme
nv-facutil-nt
- SLOW named-tuple, for config using
install
- npm install nv-facutil-nt
splitted
usage
const x = require("nv-facutil-nt");
example
> x
[Function: creat] {
rename: Symbol(rename),
swapk: Symbol(swapk),
swapv: Symbol(swapv),
foreach: Symbol(foreach),
map: Symbol(map),
filter: Symbol(filter),
to_ary: Symbol(to_ary),
to_st: Symbol(to_st),
to_mp: Symbol(to_mp),
to_dict: Symbol(to_dict)
}
> var nt = x({a:100,b:200})
> nt
Proxy [
NamedTuple { ks: [ 'a', 'b' ], vs: [ 100, 200 ] },
{
get: [Function: get],
set: [Function: set],
deleteProperty: [Function: deleteProperty]
}
]
> nt[x.map]((v,k,i,self)=>[k+i,v])
Proxy [
NamedTuple { ks: [ 'a0', 'b1' ], vs: [ 100, 200 ] },
{
get: [Function: get],
set: [Function: set],
deleteProperty: [Function: deleteProperty]
}
]
>
METHODS
APIS
LICENSE
- ISC