Name;     // check if the check box is checked or unchecked     if (e.target.checked) {       // add the numerical value of the checkbox to options array       options.push(e.target.value);     } else {       // or remove the value from the unchecked checkbox from the array       index = options.indexOf(e.target.value);       options.splice(index, 0);     }     // update the state with the new array of options     this.setState({       UserFilters: { ...this.state.UserFilters, 