摘要:
The new cause data property that you can add to a thrown Error can be used to retain access to the original error caught in a promise rejection. const 阅读全文
posted @ 2024-05-22 14:37
Zhentiw
阅读(17)
评论(0)
推荐(0)
摘要:
If we want to be able to modify the state of a promise from outside the constructor, we can use the Promise.withResolvers method to get access to the 阅读全文
posted @ 2024-05-22 14:28
Zhentiw
阅读(24)
评论(0)
推荐(0)
摘要:
The new Array.with method gives you an immutable syntax for changing values of an array at a specified index. Sometimes .map will be more efficient. S 阅读全文
posted @ 2024-05-22 14:22
Zhentiw
阅读(14)
评论(0)
推荐(0)
摘要:
You no longer need to write generator functions to create basic lazy iterator functions. Now, ECMAScript supports iterator helpers that you can call o 阅读全文
posted @ 2024-05-22 02:49
Zhentiw
阅读(12)
评论(0)
推荐(0)
摘要:
Compse commands with pipe # List all folders and files in current dir % ls -l total 56 -rw-r--r-- 1 zwt staff 51 May 16 22:35 data.txt -rwxr-xr-x 1 zw 阅读全文
posted @ 2024-05-22 02:39
Zhentiw
阅读(7)
评论(0)
推荐(0)
摘要:
Write to a file >, >> Append content at the beginning of the file. echo whatever > hello.txt echo Hello world >> hello.txt cat hello.txt # whatever # 阅读全文
posted @ 2024-05-22 02:33
Zhentiw
阅读(11)
评论(0)
推荐(0)

浙公网安备 33010602011771号