一、filter()
语法:
var newArray = arr.filter(callback(element[, index[, array]])[, thisArg])
//【1】filter
const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'pres
语法:
var newArray = arr.filter(callback(element[, index[, array]])[, thisArg])
//【1】filter
const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'pres