js 数组过滤 filter

let res = this.list.filter(item => routeEqual(this.currentRouteObj, item) || item.name === this.$config.homeName)
原文地址:https://www.cnblogs.com/pengchenggang/p/10653694.html