@clarketm/superobject

Object with superpowers! 💪

Usage no npm install needed!

<script type="module">
  import clarketmSuperobject from 'https://cdn.skypack.dev/@clarketm/superobject';
</script>

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