JavaScript Symbol.hasInstance PropertyThe JavaScript Symbol.hasInstance is used to determine if a constructor object recognizes an object as its instance. SyntaxParametersAn object as one of the constructor. Return valueReturn true if the value is in the chain of an object, otherwise false. Browser Support
Example 1Test it NowOutput: true Example 2Test it NowOutput: true. Next TopicJavaScript Symbol |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India