Exploring the Power of new.target in JavaScript
In JavaScript, the new.target property is a meta-property that can be used to determine whether a function was called with the new keyword. It returns a reference to the constructor function that was invoked with the new keyword or undefined if the f...
devsmitra.hashnode.dev1 min read