Skip to content

May 2025

Check types in JavaScript

Check types in JavaScript

Write a JavaScript function to check the types for each πŸ”— Type Utilities πŸŸ’ Easy🧩 Pattern – JavaScript Essentials Note ✍️ This object inherits from Object.prototype, so it has access to built-in methods like .toString(), .hasOwnProperty(). This means it doesn’t inherit any properties or methods (like .toString, .hasOwnProperty, etc.) but it is an object. JS Code to check… Read More »Check types in JavaScript

Throttle in JavaScript

Throttle in JavaScript

Throttling is used to control how frequently a function is executed. With throttling applied, the function runs immediately on the first call, and it can only be called after a certain time any subsequent calls within during that waiting period are ignored. πŸ”— Throttle πŸŸ‘ Medium 🧩 Pattern – JavaScript Essentials Related: Debounce… Read More »Throttle in JavaScript

Flatten a nested array

Flatten a nested array

Create a function called flatten that produces a new array by merging all nested arrays into a single, flat array. πŸ”— Flatten πŸŸ‘ Medium🧩 Pattern – JavaScript Essentials Related: Flatten Deeply Nested Array – 2625 | Matrixread Recursive Code Using Reduce