Language: JavaScript
CLI Arguments with yargs (Node)
Declare commands and flags with yargs in a Node script.
Author:
chris
Promise.all for Parallel Awaits
Issue several HTTP requests in parallel with Promise.all.
Author:
chris
localStorage CRUD in the Browser
Persist a JSON object to localStorage and read it back.
Author:
chris
Debounce Function in JS
Classic debounce — delay invoking fn until X ms after the last call.
Author:
chris
WebSocket Client in the Browser
Open a WebSocket, send a message, and log incoming frames.
Author:
chris
Array map/filter/reduce
Compose map, filter, and reduce to transform a list of numbers.
Author:
chris