Skip to content

Latest commit

History

History

Object

Folders and files

NameName
Last commit message
Last commit date

parent directory

..

NPM release

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