@indlekofer/object_get
v1.0.1
Published
get in a object
Downloads
3
Readme
@indlekofer/object_get
Usage
import og from '@indlekofer/object_get';
var obj = og({test: 1, test2: 2, test3: {text4: 4}}, ["test3", "test4"]);
console.log(obj); //=> 4
Parameters
object: object source object
in: array find
defaultValue: optional default
nullable: returns defaultvalue if nullable is set to false (default is true) and value is null