What’s that gorgeous theme?
-
-
-
Oh, it's "Shades of Purple" by
@MrAhmadAwais
- Još 1 odgovor
Novi razgovor -
-
-
The third example contains excessive destructuring and could be replaced with just: arr = new Array(10).fill(true)
-
You sir are absolutely right! I need to create a reward fund, or something, for good-point-comments on these code samples :D
- Još 1 odgovor
Novi razgovor -
-
-
The second one was new to me! finally have an easy way to make ranges in JS.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
One more way Array.from({length:10}, (_, i) => i); // [0,1,2,3,4,5,6,7,8,9]
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Nice. Heres another without the destructuring: arr = Array(10).keys().map(i=>i)
-
That's neat.
Kraj razgovora
Novi razgovor -
-
-
I love the spread operator. It is the best.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
The silly me is still using the Array.from way. These are awesome tricks. Thanks
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.
· writes about