pxt
pxt copied to clipboard
Implementation of Object.values()
Feature request template
Is your feature request related to a problem? Please describe.
Implementation of function Object.values() could be useful while working with radio. For example for parsing object to messages.
Describe the solution you'd like I would like to see implementation of this as is described in web docs of JS (here)
const data = {
msg: 'Hello'
receiver: 'World'
};
const message = Object.values(data)
// ['Hello', 'World']
Describe alternatives you've considered Alternative solution is only manualy compose array.
const data = {
msg: 'Hello'
receiver: 'World'
};
const message = [data.msg, data.receiver];
// ['Hello', 'World']
Additional context I think this could be usefull in many other cases, that mentioned here