References
summary | ||
public |
This method returns compares to find both are same if not returns the new value |
|
public |
This method is to check the type if obj is null or undefined will always return false if Type is Object will always return true as Object is the super set |
compare
summary | ||
public |
This method returns a number indicating whether array1 comes before or after or is the same as the array2 in sort order (ascending order) 1 array1 comes after array2 -1 array1 comes before array2 0 array1 same as array2 |
|
public |
This method returns a number indicating whether date1 comes before or after or is the same as the date2 in sort order (ascending order) 1 date1 comes after date2 -1 date1 comes before date2 0 date1 same as date2 |
|
public |
This method returns a number indicating whether obj1 comes before or after or is the same as the obj2 in sort order (ascending order) 1 obj1 comes after obj2 -1 obj1 comes before obj2 0 obj1 same as obj2 |
|
public |
This method returns a number indicating whether num1 comes before or after or is the same as the num2 in sort order (ascending order) 1 num1 comes after num2 -1 num1 comes before num2 0 num1 same as mum2 |
|
public |
This method returns a number indicating whether obj1 comes before or after or is the same as the obj2 in sort order (ascending order) 1 obj1 comes after obj2 -1 obj1 comes before obj2 0 obj1 same as obj2 |
|
public |
This method returns a number indicating whether str1 comes before or after or is the same as the obj2 in sort order (ascending order) 1 str1 comes after str2 -1 str1 comes before str2 0 str1 same as str2 Its a wrapper to localeCompare function (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare) |