object-arithmetic
Version:
Arithmetic capabilities to JS objects
31 lines (27 loc) • 554 B
Markdown
Arithmetic Capabilities to Javascript Objects
```js
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)
```
* add (obj1, obj2)
* addUsingKey(obj1, obj2)
* intersection(obj1, obj2)
* leftJoin(obj1, obj2)
* rightJoin(obj1, obj2)
* distintJoin(obj1, obj2)
* attributeMerge(obj1, obj2)
* distinctAttributeMerge(obj1, obj2)