@clarketm/superobject

Object with superpowers! 💪

Stats

StarsIssuesVersionUpdatedCreatedSize
@clarketm/superobject
1.2.323 years ago3 years agoMinified + gzip package size for @clarketm/superobject in KB

Readme

Object

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.