摘要:
ES11: 1:BigInt 1 //之前的最大表示的安全数字 2 const max = Number.MAX_SAFE_INTEGER 3 console.log(max); 4 //新增 BigInt 末尾加n 5 const bigInt = 900719925474099100n 6 co 阅读全文
posted @ 2022-03-28 21:23
沁霓
阅读(122)
评论(0)
推荐(0)
摘要:
1:flat 降维 flatMap 1 const arr = [ 2 [1, 2, 3], 3 [20], 4 [ 5 [21, 22], 6 [23, 24] 7 ], 8 [90] 9 ] 10 console.log(arr); 11 // flat的使用 默认降一个维度 12 consol 阅读全文
posted @ 2022-03-28 20:47
沁霓
阅读(54)
评论(0)
推荐(0)
摘要:
1:Object.value获取对象的value值 const obj = { name: 'tyy', age: 18 } console.log(Object.keys(obj)); console.log(Object.values(obj)); 2:Object.entries 获取对应键值 阅读全文
posted @ 2022-03-28 19:07
沁霓
阅读(47)
评论(0)
推荐(0)

浙公网安备 33010602011771号