partial-equal
v1.0.1
Published
Check if partial of object equal to another object. when pathes supplies, check the value of the pathes in the object if they equal
Maintainers
Readme
partialEqual
Check if partial of object equal to another object. when pathes supplies, check the value of the pathes in the object if they equal
Usage: partialEqual<T>(input1: T, input2: T, ...pathes): boolean
import { partialEqual } from 'partial-equal'
partialEqual({ a: 1, b: 2 }, { a: 1, b: 1 })
// Output: true
partialEqual({ a: 2, b: 2 }, { a: 1, b: 2 }, `a`, `b`)
// Output: false
partialEqual({ a: 2, b: 2 }, { a: 1, b: 2 }, `b`))
// Output: trueThis module exported from utilizes project.
