pxt icon indicating copy to clipboard operation
pxt copied to clipboard

Implementation of Object.values()

Open pajasry opened this issue 3 years ago • 0 comments

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

pajasry avatar Apr 01 '22 07:04 pajasry