반응형
hi.
today, i gonna talk about flat method in JS.
this is my first time to use it.
well. you know, it is really boring to use for loop every day for destructuring the array.
so I asked to GPT about another way.
she or he or it? teached me the "flat" method.
it is really simple to use....OMG
so I had googled it, and realized that it is slower than for loop.
please refer to the below..
it will take 0.2 sec than for loop..
sooooooooooooo sad.............
반응형
'열정가득한 개발자의 이야기 > Javascript Algorithm' 카테고리의 다른 글
leet code 387. First Unique Character in a String (javascript) (1) | 2025.01.16 |
---|---|
345. Reverse Vowels of a String (0) | 2025.01.14 |
Palindrome Array (geeksforgeeks_Basic) (3) | 2024.11.07 |
leet code 189. Rotate Array (javascript) (1) | 2024.11.03 |
1207. Unique Number of Occurrences (Javascript) (0) | 2024.09.29 |