@clarketm/superobject
v1.2.32
Published
Object with superpowers! 💪
Downloads
60
Maintainers
Readme
Object
Object with superpowers! 💪
This data structure inherit all methods and properties from the
Object
built-in.
Individual Module Installation
Yarn
$ yarn add @clarketm/superobject
Npm
$ npm install @clarketm/superobject --save
API
constructor(object: Object)
Construct an Object
hasNested(path: string): boolean
Check for nested value from string key
| Name | Type | Attribute | Description | | ---- | ------ | --------- | ----------- | | path | string | |
getNested(path: string): Item
Get nested JavaScript object value from string key
| Name | Type | Attribute | Description | | ---- | ------ | --------- | ----------- | | path | string | |
clone(config: Config): object
Deep clone an Object
| Name | Type | Attribute | Description | | ------ | ------ | --------------------------- | -------------------- | | config | Config | optional: true, default: {} | Configuration object |