Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js compare objects

const isEqual = (...objects) =>
  objects.every((obj) => JSON.stringify(obj) === JSON.stringify(objects[0]));
if (!isEqual(this.lastValue, val)) {
Source by github.com #
 
PREVIOUS NEXT
Tagged: #js #compare #objects
ADD COMMENT
Topic
Name
2+3 =