So I would have the next string:
const string = "1,22, 28,40,4, 8,24,31,33"
var config = {
config_key: config_key,
location_key: null,
autoassign: 1,
}
I would need to create 9 objects from this string where the location_key: is equal with a value in the string, the other object prop. remains the same.