Is it possible to compare two JS Objects based on their properties no matter the values ?
For example :
var first = {
a: 2,
b: 3
}
var second = {
a: 4,
b: 5
}
console.log(first.hasPropertiesOf(second)); //true
Is it possible to compare two JS Objects based on their properties no matter the values ?
For example :
var first = {
a: 2,
b: 3
}
var second = {
a: 4,
b: 5
}
console.log(first.hasPropertiesOf(second)); //true