JavaScript Object.is() MethodThe Object.is() method of JavaScript is used to determine whether two values are the same value. There is a special built-in method that compares values. Syntax:Parametervalue1: The first value to compare. value2: The second value to compare. Return value:This method returns a Boolean indicating whether or not the two arguments are the same value. Browser Support:
Example 1Output: false Example 2Output: false true Example 3Output: true false
Next TopicJavaScript Objects
|