1.0.1 • Published 3 years ago
nv-dict-remove-with-value v1.0.1
nv-dict-remove-with-value
- nv-dict-remove-with-value
install
- npm install nv-dict-remove-with-value
usage
example
const {
fst,
fst_not,
lst,
lst_not,
which,
which_not,
which_from_lst,
which_not_from_lst,
some,
some_not,
some_from_lst,
some_not_from_lst,
all,
all_not
} = require("nv-dict-remove-with-value");
var d = {a:100,b:200,c:100,d:200}
all(d,100)
> d
{ b: 200, d: 200 }
>
var d = {a:100,b:200,c:100,d:200}
fst(d,100)
> d
{ b: 200, c: 100, d: 200 }
>
var d = {a:100,b:200,c:100,d:200}
lst(d,100)
> d
{ a: 100, b: 200, d: 200 }
>
API
- dict_vrm.fst(d,cond_func,...cond_other_func_params)
- dict_vrm.fst_not(d,cond_func,...cond_other_func_params)
- dict_vrm.which(d,index,cond_func,...cond_other_func_params)
- dict_vrm.which_not(d,index,cond_func,...cond_other_func_params)
- dict_vrm.which_from_lst(d,index,cond_func,...cond_other_func_params)
- dict_vrm.which_not_from_lst(d,index,cond_func,...cond_other_func_params)
- dict_vrm.lst(d,cond_func,...cond_other_func_params)
- dict_vrm.lst_not(d,cond_func,...cond_other_func_params)
- dict_vrm.some(d,whiches,cond_func,...cond_other_func_params)
- dict_vrm.some_not(d,whiches,cond_func,...cond_other_func_params)
- dict_vrm.some_from_lst(d,whiches,cond_func,...cond_other_func_params)
- dict_vrm.some_not_from_lst(d,whiches,cond_func,...cond_other_func_params)
- dict_vrm.all(d,cond_func,...cond_other_func_params)
- dict_vrm.all_not(d,cond_func,...cond_other_func_params)
LICENSE
- ISC