Objects.keys(obj).forEach(function(key,value) {
if (key.includes('#xxx')) {
tempObj[key] = value;
}
})
now the value field messes up the hex string (including blank, and interprets this as number), i just want to get it 1:1. How can i avoid this conversion?
The obj is declared in the custom module(it does not change). The object is sent via OSC listener, (values property).When pressing a button in the gui, this 2 byte hex is sent out(via osc outfilter) to the hardware device. i saw the values via console log(and in the values prop too)
will try out (that should trigger a string conversion)
< value +""
Iterates over an array containing only your object's keys, the issue was not that the value was being converted, but that the function called by forEach is supposed to have only one argument (the item's value in the array, not in the object).