Baseline 2023
Newly available
toReversed()
㯠TypedArray
ã¤ã³ã¹ã¿ã³ã¹ã®ã¡ã½ããã§ã reverse()
ã¡ã½ããã«å¯¾å¿ããã³ãã¼ã¡ã½ããã§ãããã®ã¡ã½ããã¯ãè¦ç´ ãéé ã«ããæ°ããåä»ãé
åãè¿ãã¾ãããã®ã¡ã½ãã㯠Array.prototype.toReversed()
ã¨åãã¢ã«ã´ãªãºã ã§ãã
ãªãã
è¿å¤è¦ç´ ãéé ã«æ ¼ç´ããæ°ããåä»ãé åã§ãã
解説詳細ã«ã¤ãã¦ã¯ã Array.prototype.toReversed()
ãã覧ãã ããããã®ã¡ã½ããã¯æ±ç¨çã§ã¯ãªããåä»ãé
åã¤ã³ã¹ã¿ã³ã¹ã«å¯¾ãã¦ã®ã¿å¼ã³åºããã¨ãã§ãã¾ãã
const uint8 = new Uint8Array([1, 2, 3]);
const reversedUint8 = uint8.toReversed();
console.log(reversedUint8); // Uint8Array [3, 2, 1]
console.log(uint8); // Uint8Array [1, 2, 3]
仿§æ¸ ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ
å ±
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4