@indlekofer/object_get

1.0.1 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @indlekofer/object_get

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.38 kB

Total Files

4

Last publish

Collaborators

  • daind