JavaScript WeakSet has() methodThe JavaScript WeakSet has() method indicates whether the WeakSet object contains the specified object. It returns true if the specified object is present, otherwise false. SyntaxThe has() method is represented by the following syntax: Parametervalue - It represents the object to be searched. ReturnA Boolean value. JavaScript WeakSet has() method exampleLet's see an example to determine whether the WeakSet object contains the specified object. Test it NowOutput: true false false Next TopicWeakSet Method |
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