dict = {"a": 1, "b": 2, "c": 3, "d": 4}
data = list(dict.items())
an_array = np.array(data)
print(an_array)
OUTPUT
[['a' '1']
['b' '2']
['c' '3']
['d' '4']]
// 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})))