问题 Based on an object like this: var p = [ {x: [ {x1: "John"}, ] }, {x: [ {x1: "Louis"}, ] } ]; I need to filter p objects when x1 is different from any of those values: var p = [ {x: [ {x1: "Louis"}, ] }, ]; Thanks all of you for your help. 回答1: It is exactly the same as your question with the numbers. var p = [ {x: [ {x1: 'John'}, ] }, {x: [ {x1: 'Louis'}, ] } ]; const results = p.filter(val => !val.x.some(v => v.x1 === 'John')); console.log(results); 回答2: Use filter method and destructuring.