I want a clean way to create a new object from the given data:
const groups = [1, 2, null, 1, 1, null]