nv-dict-index-of

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i nv-dict-index-of

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

2.74 kB

Total Files

3

Last publish

Collaborators

  • ihgazni2