JavaScript Function bind() method The JavaScript Function bind() method is used to create a new function. When a function is called, it…
apply()
-
-
JavaScript Function toString() method The JavaScript Function toString() method returns a string. Here, string represents the source code of the function. Syntax…
-
JavaScript handler.apply() Method The handler.apply() method is used to trap for a function call. The value returned by the apply trap is…
-
JavaScript handler.construct() Method The handler.construct() method is used to intercept the new operation. This method returns an object. Syntax construct: function(target, argumentsList,…
-
JavaScript handler.defineProperty() Method The handler.defineProperty() method can define the new properties. It can also modify the existing properties directly on an object.…
-
JavaScript handler.deleteProperty() Method The handler.deleteProperty() method used to remove the property entirely using the delete operator. This method returns true if the…
-
JavaScript handler.get() Method The handler.get method is a trap for getting a property value. This method takes 3 arguments. Syntax get: function(target,…
-
JavaScript handler.getOwnPropertyDescriptor() Method The handler.getOwnPropertyDescriptor() method is a trap for Object.getOwnPropertyDescriptor(). It exists as an own property of the target object and…
-
JavaScript handler.getPrototypeOf() Method The handler.getPrototypeOf() method is a trap for the internal method. If target is not extensible, then this method returns…
-
JavaScript handler.has() Method The handler.has() method used to “hide” any property you want. It’s a trap for an operator. It returns the…