how to filtering array of sub-array of objects and array of sub-array of objects in javascript
问题 I have got two arrays of objects. I want to filter data based on permissionObj. This is coming from database. Here are arrays of sub-arrays in the permissionObj. let permissionObj = [ { "Deposit": [{ label: "can create", value: "can_create" }, ] }, { "Journals": [{ label: "can create", value: "can_create" }] }, { "Dashboard": [{ label: "can view", value: "can_view" }] }, ] this is static data. I want to compare this data based on permission. const PubSidebar = [{ label: "Dashboard", value: