JavaScript return other object if array string matches object property value
I've an simple array of string ids and object and on initial load I'm mapping this Ids with this object and making checked property to true const Ids = ['743156', '743157'] [ { "id": "743156", "role": "Authorized Redistributor (AR)", "checked":…