String operation in nodejs Objects
问题 I have a scenario in nodeJS. I have an object which contains number of elements and array var Obj = { count: 3, items: [{ "organizationCode": "FP1", "organizationName": "FTE Process Org" }, { "organizationCode": "T11", "organizationName": "FTE Discrete Org" }, { "organizationCode": "M1", "organizationName": "Seattle Manufacturing" } ] }; The scenario is like this. I have to filter result based on criteria. I have print output if either organizationCode or organizationName starts with