js中先遍历后过滤

34 阅读1分钟

let str= this.arr.map(item=>item).filter(m=>m.value===e)[0]?.children