I want to have a simple array of values, ie
var simpleArray = [\"SE1\",\"SE2\",\"SE3\"];
I want to check this array when an action happens (a c
my ES* variant
const toggleArrayValue = (arrayList, arrayValue) => arrayList.includes(arrayValue) ? arrayList.filter(el => el !== arrayValue) : [...arrayList, arrayValue]