Skip to main content

Static Method โ†” Method attach to Constructor Function (NOT Delegate via __proto__)

staticโ€‹

JS Keyword to define Static Method/property for class

Instance Methodโ€‹

Method to Delegate via __proto__

Array.from()

implementing custom [<span data-tooltip-id="preview__mhoi9b2XjM3Rk84r3">static</span>](static_static-method) [<span data-tooltip-id="preview__MP5hXPJeveLXpdxcz">Method</span>](method)s

Referencesโ€‹

  1. Object.create() โ†” Static Method to manually link Object to another as __proto__

  2. [Math](math) [**_Static Method_**](static-method) โ†”

  3. JSON โ†” Global Object API to acccess Static Method to convert/parse JSON

  4. assert.equal() โ†” !legacy assert Static Method to test == loose equality

  5. assert.deepEqual() โ†” assert Static Method to deeply compare == nested objects

  6. assert.throws() โ†” assert Static Method to complain if Callback Function Parameter does not throw Exception

  7. Singleton โ†” TS Syntax Pattern to ensure exactly only one object instance of a class, using Private Constructor & Static Method

  8. assert.strictEqual() โ†” assert Static Method to test expression === expected, determined by Object.is()

  9. assert.deepStrictEqual() โ†” assert Static Method to test === for deeply nested object

  10. inherits() โ†” util Static Method to set arg1 Object to inherit from arg2 object

  11. exec() โ†” child_process Static Method to spawn Shell & execute command

  12. spawn() โ†” child_process Static Method to spawn new ChildProcess

  13. readdirSync() โ†” fs Static Method to Sync read dir content

  14. readFileSync() โ†” fs Static Method to Sync read file content

  15. readFile() โ†” fs Static Method to async read contents of file

  16. readdir() โ†” fs Static Method to async read dir content

  17. writeFile() โ†” fs Static Method to async write data to file

  18. writeFileSync() โ†” fs Static Method to Sync write data to file

  19. appendFile() โ†” fs Static Method to async append data to file

  20. appendFileSync() โ†” fs Static Method to Sync append data to file

  21. existsSync() โ†” fs Static Method to check Sync if path exists

  22. mkdirSync() โ†” fs Static Method to Sync make new dir

  23. mkdir() โ†” fs Static Method to async make new dir

  24. unlinkSync() โ†” fs Static Method to Sync remove file/Symbolic Link

  25. rename() โ†” fs Static Method to async rename file (to new path)

  26. renameSync() โ†” fs Static Method to Sync rename file

  27. unlink() โ†” fs Static Method to async remove file/Symbolic Link

  28. rmdirSync() โ†” fs Static Method to Sync remove dir

  29. rmdir() โ†” fs Static Method to async remove dir

  30. createReadStream() โ†” fs Static Method to create a Readable file stream

  31. createWriteStream() โ†” fs Static Method to create a Writable file stream

  32. createServer() โ†” http Static Method to create new HTTP Server

  33. request() โ†” http Static Method to make a HTTP Request

  34. getHeapStatistics() โ†” v8 Static Method to print stats for JS Engine

  35. emitter.on() โ†” emitter Static Method to wire up custom event

  36. static โ†” JS Keyword to define Static Method/property for class