The coding round I: method and function utilities
Solve "implement X" questions with a reliable method; master function utilities.
- JS.14.01The coding-round method and rubricCoreMid-levelBeing written
- JS.14.02debounce (with leading/trailing, cancel, flush)CoreMid-levelBeing written
- JS.14.03throttle (leading/trailing)CoreMid-levelBeing written
- JS.14.04once, memoize and memoizeAsyncCoreMid-levelBeing written
- JS.14.05curry, partial and compose/pipeCoreMid-levelBeing written
- JS.14.06sleep, timeout, and setInterval via setTimeoutMid-levelBeing written
Interview questions in this module
- Implement
debounce. Addleadingandcancel. - Implement
throttle. How is it different from debounce? - Implement
once. - Implement
memoizewith a custom key resolver. - Implement
currythat supports placeholders. - Implement
composeandpipe. - Implement
sleepthat can be aborted. - Implement
setIntervalusingsetTimeout.