If I want to add a prototype to JavaScript's Array
, is there a way to export it so that I can put all of the prototype methods in a file such as modules/prototypes.js
Would it be export Array
? or would I add export prior to setting the prototype?