1.0.1 • Published 3 years ago
nv-dict-index-of v1.0.1
nv-dict-index-of
- nv-dict-index-of
install
- npm install nv-dict-index-of
usage
example
const dict_indexof = require("nv-dict-index-of")
var d = {a:1,b:2,c:3,d:2,e:2}
> dict_indexof.all(d,2)
[ 1, 3, 4 ]
> dict_indexof.fst(d,2)
1
> dict_indexof.lst(d,2)
4
> dict_indexof.which(d,2,0)
1
> dict_indexof.which_from_lst(d,2,0)
4
>
> dict_indexof.some(d,2,1,2)
[ 3, 4 ]
> dict_indexof.some_from_lst(d,2,1,2)
[ 3, 1 ]
API
- dict_indexof.fst(d,value)
- dict_indexof.lst(d,value)
- dict_indexof.which(d,value,which)
- dict_indexof.which_from_lst(d,value,which)
- dict_indexof.some(d,value,...whiches)
- dict_indexof.some_from_lst(d,value,...whiches)
- dict_indexof.all(d,value)
LICENSE
- ISC