Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check if objects have same values

Object.values(obj1).every((val, index) => val === Object.values(obj2)[index])
Source by 1loc.dev #
 
PREVIOUS NEXT
Tagged: #js #check #objects #values
ADD COMMENT
Topic
Name
5+3 =