Javascript filter object using includes
问题 I'm trying to filter an object using the filter() function in javascript . I want to filter againts an array like this: [1615, 1616]. It's referenced in the code as value.verdier. Dataset is a large array holding objects that have several properties, parsed from a JSON string. Each object in the array has a property named kat_id. The goal is to reduce the array so that it only holds objects where kat_id=1615 or kat_id=1616. Or any other value that I have in value.verdier. My code is like this