Engrain by ByteRush

JS.14 6 concepts

The coding round I: method and function utilities

Solve "implement X" questions with a reliable method; master function utilities.

  1. JS.14.01The coding-round method and rubricCoreMid-levelBeing written
  2. JS.14.02debounce (with leading/trailing, cancel, flush)CoreMid-levelBeing written
  3. JS.14.03throttle (leading/trailing)CoreMid-levelBeing written
  4. JS.14.04once, memoize and memoizeAsyncCoreMid-levelBeing written
  5. JS.14.05curry, partial and compose/pipeCoreMid-levelBeing written
  6. JS.14.06sleep, timeout, and setInterval via setTimeoutMid-levelBeing written

Interview questions in this module

  1. Implement debounce. Add leading and cancel.
  2. Implement throttle. How is it different from debounce?
  3. Implement once.
  4. Implement memoize with a custom key resolver.
  5. Implement curry that supports placeholders.
  6. Implement compose and pipe.
  7. Implement sleep that can be aborted.
  8. Implement setInterval using setTimeout.