如前所述,如果物件的鍵不是string或symbol,js 將隱式地將其轉換為字串。 幸運的是,map的鍵型別沒有問題. const numbersMap = new Map(); ...
確定! 回上一頁