object-arithmetic

1.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i object-arithmetic

      Weekly Downloads

      2

      Version

      1.0.2

      License

      ISC

      Unpacked Size

      39.8 kB

      Total Files

      5

      Last publish

      Collaborators

      • josharsh