タグ

ブックマーク / h3manth.com (2)

  • ES2023 features list

    ES2023 Features! Array find from last Hashbang Grammar Symbols as WeakMap keys Change array by copy Array find from last Array.prototype.findLast and Array.prototype.findLastIndex 📕 let nums = [5,4,3,2,1]; let lastEven = nums.findLast((num) => num % 2 === 0); // 2 let lastEvenIndex = nums.findLastIndex((num) => num % 2 === 0); // 3Hashbang Grammar #! for JS 📕 The first line of this script begins

    ES2023 features list
    jay-es
    jay-es 2023/05/20
    ES2023 に入る機能の簡潔なまとめ
  • ES2021 features list

    ES2021 Features! Logical Assignment Operators (&&= ||= ??=) Numeric Separators (1_000) Promise.any & AggregateError String.prototype.replaceAll WeakRefs & FinalizationRegistry Objects Logical Assignment Operators Logical Assignment Operators 📖. //"Or Or Equals" x ||= y; x || (x = y); // "And And Equals" x &&= y; x && (x = y); // "QQ Equals" x ??= y; x ?? (x = y);const updateID = user => { // We c

    ES2021 features list
    jay-es
    jay-es 2021/06/26
    ES2021の新機能概要
  • 1