Skip to content
Malexion edited this page Oct 31, 2016 · 1 revision

__.match(obj1, obj2, [options])

  • obj1 First Item to check.
  • obj2 Second Item to check.
  • [options] [Optional] Params, { checkType: false, recursive: true, explicit: false }

Examples

var obj1 = {
   foo: 'bar',
   test: {
      value: '3'
   }
};
var obj2 = {
   foo: 'bar',
   test: {
      value: 3
   }
};

console.log(__.match(obj1, obj2));
console.log(__.match(obj1, obj2, { explicit: true }));
Clone this wiki locally