// Convert to array string to dictionary, ex: ['choice_a', 'choice_b'] => {choice_a: true, choice_b: true } const paramsChecked = Object.assign({}, ...listChecked.map((x) => ({[x]: true})))