nv-array-named-tuple
v1.0.2
Published
nv-array-named-tuple =======================
Downloads
2
Readme
nv-array-named-tuple
install
- npm install nv-array-named-tuple
usage
const x = require("nv-array-named-tuple");
example
> var tu = x.creat_named_tuple({a:100,b:200,c:300})
> tu
[
100,
200,
300,
a: [Getter/Setter],
b: [Getter/Setter],
c: [Getter/Setter]
]
> tu.a
100
> tu[0] = 111
111
> tu.a
111
> tu.a = 111000
111000
> tu
[
111000,
200,
300,
a: [Getter/Setter],
b: [Getter/Setter],
c: [Getter/Setter]
]
>
> var tu = x.creat_named_tuple(["a","b","c"],true,999)
> tu
[
999,
999,
999,
a: [Getter/Setter],
b: [Getter/Setter],
c: [Getter/Setter]
]
>
METHODS
APIS
{
add_one_named_idx: [Function: add_one_named_idx],
add_named_idxes: [Function: add_named_idxes],
creat_named_tuple_from_dict: [Function: creat_named_tuple_from_dict],
creat_named_tuple_from_nmary: [Function: creat_named_tuple_from_nmary],
creat_named_tuple: [Function: creat_named_tuple],
is_ary_idx: [Function: is_ary_idx],
sforin: [Function: sforin],
aforin: [AsyncFunction: aforin]
}
LICENSE
- ISC