1.0.2 • Published 3 years ago

object-arithmetic v1.0.2

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

Object-Arithmetic

Arithmetic Capabilities to Javascript Objects

How to use

import {add} from "object-arithmetic"
let a={
    name:"Harsh",
    age: 19
}

let b = {
    name: "Harsh",
    school: "SOCS",
    branch: "OSS"
}
let c = add(a,b)
console.log(c)

Supported methods

  • add (obj1, obj2)
  • addUsingKey(obj1, obj2)
  • intersection(obj1, obj2)
  • leftJoin(obj1, obj2)
  • rightJoin(obj1, obj2)
  • distintJoin(obj1, obj2)
  • attributeMerge(obj1, obj2)
  • distinctAttributeMerge(obj1, obj2)

More coming soon