Skip to main content

Instance Method โ†” Method to Delegate via __proto__

Referencesโ€‹

  1. .slice() โ†” Array Instance Method to return newshallow copy portion of Array

  2. .call() โ†” Function Instance Method to invoke function with explicit this keyword [and optional Argument]

  3. .bind() โ†” Function Instance Method to fix this keyword for Method (with optional Argument), for new standalone fn

  4. isNaN() โ†” Instance Method returns boolean if Argument is NaN or not; applies Coercion

  5. alert() โ†” to display alert box with optional message & OK button

  6. basename() โ†” path Instance Method to return string of just file name from a full path

  7. emitter.emit() โ†” emitter Instance Method to fire custom event