Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const idArray = ["935", "933", "930"];
- const objectsArray= [
- {
- name: "Kevin",
- color: "red",
- id: "935"
- },
- {
- name: "Ana",
- color: "white",
- id: "815"
- },
- {
- name: "Maria",
- color: "silver",
- id: "035"
- },
- {
- name: "Victor",
- color: "red",
- id: "935"
- },
- {
- name: "Vanessa",
- color: "red",
- id: "933"
- },
- ]
- case ConfigurationsActions.DELETE_CONFIGURATION:
- if (action.ocids.length === 1) {
- return state.filter(configuration =>
- configuration.ocid !== action.ocids[0]
- );
- } else {
- const deleteConfigurations: any = () => {
- for (let i = 0; i < action.ocids.length; i++) {
- return state.filter(configuration =>
- configuration.ocid !== action.ocids[i]
- );
- }
- };
- return deleteConfigurations;
- }
Add Comment
Please, Sign In to add comment