oyzq
oyzq
全部文章
分类
面经(1)
题解(3)
归档
标签
去牛客网
登录
/
注册
oyzq的博客
全部文章
(共4篇)
题解 | #移除数组中的元素#
function removeWithoutCopy(arr, item) { for(let i=arr.length-1;i>0;i--){ if(arr[i] === item){ arr.splice(i,1) } } return arr }
HTML/CSS/JavaScript
2021-11-09
1
310
题解 | #移除数组中的元素#
function remove(arr, item) { return arr.filter(num => { return num != item }) }
HTML/CSS/JavaScript
2021-11-04
1
315
题解 | #数组去重#
{"css":"","js":"function count(str) {\n let obj = {};\n for (let i = 0;i<str.length;i++){\n if(obj[str[i]]){\n obj[str[i]] ...
HTML/CSS/JavaScript
2021-11-04
0
223
前端面经
前端面经 【58】58一面面经估计凉 https://www.nowcoder.com/discuss/270302【58】58 前端面经 https://www.nowcoder.com/discuss/268518【CVTE】cvte前端新手的凉面 https://www.nowcoder.co...
2019-09-21
14
7029