0.1.5 • Published 8 years ago

obsops v0.1.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

ObjectTools

A library for set and equality operations on objects.

Install

$ npm install obsops

Use

import * as obsops from 'obsops'

// a deep copy of object
let copy = obsops.copy(object);

// a frozen deep copy of object
let frozen = obsops.freezeCopy(object);

// a union of multiple objects
let union = obsops.union(...objects);

// an intersection of multiple objects, intersected by key
let isectKey = obsops.intersectionByKey(...objects);

// an intersection of multiple objects, intersected by value
let isectValue = obsops.instersectionByValue(...objects);

// the difference between multiple objects, resolved from right to left by key
let diffKey = obsops.differenceByKey(...objects);

// the difference between multiple objects, resolved from right to left by value
let diffValue = obsops.differenceByValue(...objects);
0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago