DEV Community

Discussion on: How to use the methods from other objects in JavaScript

Collapse
 
prashanth1k profile image
Prashanth Krishnamurthy

Yep, that is absolutely cool (and terrifying?) at the same time. You can also see that with custom methods this can open up new opportunities for reuse. Call in Arrays and strings especially find a sweet-spot - thanks to their similarities, but the principle goes into multiple ways of using functions and currying functions.