🌈 搜索
📅  最后修改于: 2022-03-11 14:55:41.542000             🧑  作者: Mango
var arr = [1, 2, 3, 4]; var filtered = arr.filter(function(element, index, array) { return (index % 2 === 0); });