1.2.1 • Published 3 years ago

@multitool-js/objects v1.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Multitool JS / Objects

A collection of useful object-oriented methods.

Each tool or group of tools can be required/imported on its own like this:

// Full require/import
const multitool = require('@multitool-js/objects');
const getProp = multitool.getProp;
// OR
import { getProp } from '@multitool-js/objects';
// Single *tool* require/import
const { getProp } = require('@multitool-js/objects/tools/getProp');
// OR
import { getProp } from '@multitool-js/objects/tools/getProp';

Tools:

tooldescription
getPropRetrives a property from an object
hasPropChecks if an object contains a property
setPropSets a property in an object
replacePropReplaces a property in an object
deepMergeMerges two objects, any child object is recursively recreated
deepCompareChecks if two values are equal. Objects and Arrays are recursively compared for each value

1.2.0

3 years ago

1.2.1

3 years ago

1.1.7

3 years ago

1.1.6

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.0.0

4 years ago