JavaScript
A5.ucompare Method
Syntax
A5.u.compare(a,b)
Arguments
- aany
The first variable.
- bany
The second variable.
Description
Compare two variables to see if they contain the same values.
Example
var data1 = {name: 'Bob', age: 25}; var data2 = {age: 25, name: 'Bob'}; var compareJSON = JSON.stringify(data1) == JSON.stringify(data2); var compare = A5.u.object.compare(data1,data2); // compareJSON = false // compare = true