Flatten Deeply Nested Array

Flatten Deeply Nested Array Given a multi-dimensional array arr and a depth n, return a flattened version of that array. A multi-dimensional array is a recursive data structure that contains integers or other multi-dimensional arrays. …

Read more

Chunk Array in JavaScript

Chunk Array in JavaScript Given an array arr and a chunk size size, return a chunked array. A chunked array contains the original elements in arr, but consists of subarrays each of length size. …

Read more

Debounce in JavaScript

Debounce in JavaScript Given a function fn and a time in milliseconds t, return a debounced version of that function. A debounced function is a function whose execution is delayed by t milliseconds …

Read more

Promise Time Limit in JavaScript

Promise Time Limit in JavaScript Given an asyncronous function fn and a time t in milliseconds, return a new time limited version of the input function. A time limited function is a function …

Read more

Skip to content