04 2021 档案

摘要:function isQuoteData(data) { return ['Map', 'Set', 'Array', 'Object'].includes( {}.toString.call(data).split(' ')[1].slice(0, -1) ); } function deepCl 阅读全文
posted @ 2021-04-28 10:27 nextYearToday 阅读(60) 评论(0) 推荐(0)
摘要:const registry = new FinalizationRegistry(v=> {console.log('v >', v)}) let o = {} registry.register(o, 'i am o') o = null gc() // v > i am o 这段代码在node 阅读全文
posted @ 2021-04-07 09:47 nextYearToday 阅读(533) 评论(0) 推荐(0)