Javascript – filtering an object-array based on another object-array (orderly)
here is my data: arrayA= [{"studentID":1,"Type":"A"},{"studentID":2,"Type":"B"},{"studentID":3,"Type":"C"},{"studentID":4,"Type":"A"}] filteredArrayOrderlyOn = [{"studentID":1},{"Type":"A"}] (depending on the order the user selects the filters) Output should be arrayA = [{"studentID":1,"Type":"A"}] or if the filteredArrayOrderlyOn array changes because user has control on this selection. filteredArrayOrderlyOn = [{"Type":"B"},{"studentID":1}]…