FrontendHacks's profile picture. All about frontend

Frontend Hacks

@FrontendHacks

All about frontend

Bạn có thể thích

This snippet can be used to find out the time it takes to execute a function. #javascript #snippets #frontend #dev

FrontendHacks's tweet image. This snippet can be used to find out the time it takes to execute a function. #javascript #snippets #frontend #dev

This snippet can be used to iterate over a callback ntimes. #javascript #snippets #frontend

FrontendHacks's tweet image. This snippet can be used to iterate over a callback ntimes.
#javascript #snippets #frontend

This snippet counts the occurrences of a value in an array. #javascript #programming #frontend

FrontendHacks's tweet image. This snippet counts the occurrences of a value in an array. #javascript #programming #frontend

How to deep flatten an Array?

FrontendHacks's tweet image. How to deep flatten an Array?

When you select a node under the Elements tab, Chrome DevTools adds `== $0` right after the node. The DevTools remembers the last five selected nodes. In addition to `$0`, we can use `$1`, `$2`, `$3` and `$4` to access the last selected nodes. #Chrome #javascript #Frontend

FrontendHacks's tweet image. When you select a node under the Elements tab, Chrome DevTools adds `== $0` right after the node. The DevTools remembers the last five selected nodes.  In addition to `$0`, we can use `$1`, `$2`, `$3` and `$4` to access the last selected nodes. #Chrome #javascript #Frontend

Flattening Arrays of Arrays. There is a method flat on the prototype Array that lets you make a single array from an array of arrays. #javascript

FrontendHacks's tweet image. Flattening Arrays of Arrays. There is a method flat on the prototype Array that lets you make a single array from an array of arrays. #javascript

Dynamic Property Names in Objects

FrontendHacks's tweet image. Dynamic Property Names in Objects

How to sort special fields in Array? #javascript

FrontendHacks's tweet image. How to sort special fields in Array? #javascript

How to pass additional parameters to setTimeout? setTimeout(someFunction, 1.5 * 1000, "1", "2", "3"); #javascript


How to identify if the user in Dark mode? #javascript #browser #FrontEnd

FrontendHacks's tweet image. How to identify if the user in Dark mode? #javascript #browser #FrontEnd

How to insert SVG to img tag? How to hide img src? How to use image as a Blob object? #javascript #SVG #hack #Frontend

FrontendHacks's tweet image. How to insert SVG to img tag?
How to hide img src?
How to use image as a Blob object?
#javascript #SVG #hack #Frontend

United States Xu hướng

Bạn có thể thích

Loading...

Something went wrong.


Something went wrong.