Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js compare tow object values

//turn them into text then compare their values
JSON.stringify(obj1) === JSON.stringify(obj2) 
/*not the best solution but work for simple objects without methods 
Happy Coding */ (●'◡'●)
Source by worcraft-algeria-dz.com #
 
PREVIOUS NEXT
Tagged: #js #compare #tow #object #values
ADD COMMENT
Topic
Name
8+6 =