[ { "Name": "Division 1","ParentName": null },{ "Name": "Division 2","ParentName": null } ]
使用lodash我正在检查这样
_.some(divisionList,['Name',divisionname]);
var divisionName = "division 2",// for example hasDivision = divisionList.some((obj) => obj["Name"].toLowerCase() === divisionName); console.log(hasDivision); // true