牛客915779177号
牛客915779177号
全部文章
分类
数组(1)
读书笔记(2)
题解(1)
归档
标签
去牛客网
登录
/
注册
牛客915779177号的博客
全部文章
(共2篇)
题解 | #删除数组最后一个元素#
{"css":"","js":"function truncate(arr) {\n let newArr = arr.slice(0,arr.length-1)\n &...
HTML/CSS/JavaScript
数组
2021-10-13
0
323
题解 | #数组去重#
{"css":"","js":"Array.prototype.uniq = function () {\n let that = this;\n let result = [];\n let set = new Set();\n for(let i=0 ; i<tha...
HTML/CSS/JavaScript
数组
2021-10-13
0
0