object-arithmetic
v1.0.2
Published
Arithmetic capabilities to JS objects
Downloads
8
Maintainers
Readme
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)