πŸ”₯ There are 458 Hot Tips!!

Hot tips are spicy lil' nuggets related to web development and tooling that I share on my twitter account. I've logged them here to make them easier to find.

πŸ”₯ use Promise.allSettled() to wait until all promises have either been fulfilled or rejected.

Handy for when a promise rejects, but you still want the data of the successful ones.

59512K
1.7K263237K
6188217128
320

πŸ”₯ Pretty excited about the new JavaScript non-mutating array methods. Currently in stage 3.

.toReversed()

.toSorted()

.toSpliced() - remove items

.with() - replace items

1.3K20124191
1016
4089K
703341815K

πŸ”₯ Format large numbers in your JavaScript with numeric separators.

const milly = 1_000_000;

This doesn't affect how the number works or is displayed - just helpful for reading large values quickly.

329501440
4049.3K
5219258.4K

Running a Node / npm app in Deno - does it work?

2216.5K
414101310K

πŸ”₯ Why do you sometimes see !!double bang in front of variables in JavaScript?

3603213100
151195.2K

πŸ”₯ Did you know you can use type=β€œmodule” in a script tag block? Import external dependencies and use top level await without any tooling!

47410K
1.3K222727K
6298111124
762

πŸ”₯ Use CSS :has() to select items based on what children they have.

This :has() never been possible in CSS before this and is pretty exciting.

65511K
1.7K453525K
1144
1.2K16122300

I made a browser extension to detect who has paid $8 for their blue checkmark

2.1K263545K
17K1.9K1461.3K
3109.6K

πŸ”₯ JS Fundamentals: what is truthy and falsy?

3358.1K
17418428
203525.7K

πŸ”₯ Use CSS :where() to select multiple children inside a parent selector.

Super handy for H1 β†’ H6 and selecting all inputs inside a form.

51214K
1.4K613022K
1K12221250
1098