You can convert BigInts to numbers using the `Number()` constructor, with a few caveats. Here's what you need to know.
What Do You Want to Learn?
Latest Tutorials
Sinon's callsFake() function lets you configure what a stub function returns. Here's what you need to know.
Axios' maxBodyLength property provides a neat way to add a maximum size for HTTP request bodies. Here's what you need to know.
Here's what you need to know about JavaScript's `parseInt()` function.
Here's what you need to know about Node's built-in uuid functionality.
Here's a tool to convert short JavaScript snippets from callbacks to async/await using ChatGPT 3.5.
Here's a playground to test out Lodash in your browser.
The `toFixed()` function converts a number to a string rounded to a certain number of decimal places. Here's what you need to know.
Here's how the nullish coalescing operator in JavaScript works
Here's how you can find what bar in a bar chart the user clicked on in ChartJS 4 and ChartJS 2+3
JavaScript doesn't have a built-in tuple type, but here's how you can implement one.
Here's how you can convert a TypeScript or JavaScript enum to a string, or enum value to a string.
Here's how to use JavaScript's optional chaining with array indexes.
Here's how to use Lodash's `omit()` function to exclude properties from an object. Also includes a vanilla JS alternative for `omit()`.
Here's 3 ways you can add two arrays together in vanilla JavaScript, no libraries required.
JavaScript's String `match()` function lets you test whether a string matches a given regexp. It also has some neat tricks for advanced users using regexp groups.
Here's how you can import Chart.js from JSDelivr, Cloudflare, or unpkg in your HTML files.
Here's how you can convert a JavaScript Set to an array with no external dependencies.
Here's what setting the length of a JavaScript array does.
ChartJS bar charts are vertical by default. Here's how you make a horizontal bar chart.