![](https://img-blog.csdnimg.cn/20190918140037908.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
力扣
文章平均质量分 94
力扣 脑力提升
Until2028
快乐,健康
展开
-
js手撕代码
instanceof运算符用于检测构造函数的prototype属性是否出现在某个实例对象的原型链上,运算符左侧是实例对象,右侧是构造函数。原创 2023-09-13 04:41:22 · 202 阅读 · 0 评论 -
js 数组 map set API
js中的数组,Map,Set的基本使用_xinxxxxxxxxx的博客-CSDN博客js中的queue,map,set的基本使用queuelet queue = [];[1]queue.push({a:1}) [{a:1}]//splice 删除并返回队首值queue.shift()setlet set = new Set();//has 判断是否存在某个keymp.has(1);//get。转载 2022-09-19 15:44:45 · 663 阅读 · 0 评论