摘要:
var r, arr = ['apple', 'strawberry', 'banana', 'pear', 'apple', 'orange', 'orange', 'strawberry']; r = arr.filter(function (element, index, self) { re
阅读全文
posted @ 2020-05-09 13:45
Qionghuihe
阅读(208)
推荐(0)
编辑
摘要:
'use strict'; function normalize(arr) { var newArr=[]; for(var i=0;i<arr.length;i++){ var temp = arr[i].toLowerCase(); newArr[i] = temp.slice(0,1).toU
阅读全文
posted @ 2020-05-09 10:41
Qionghuihe
阅读(413)
推荐(0)
编辑