isEqual.js 383 B

123456789101112131415
  1. var helperEqualCompare = require('./helperEqualCompare')
  2. var helperDefaultCompare = require('./helperDefaultCompare')
  3. /**
  4. * 深度比较两个对象之间的值是否相等
  5. *
  6. * @param {Object} obj1 值1
  7. * @param {Object} obj2 值2
  8. * @return {Boolean}
  9. */
  10. function isEqual (obj1, obj2) {
  11. return helperEqualCompare(obj1, obj2, helperDefaultCompare)
  12. }
  13. module.exports = isEqual