microsoft / microsoft/pxt

Implementation of Object.values()

Open
#8,757 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
641
Avg merge
12h 4m
Merged PRs (30d)
57

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating how PXT handles JavaScript built-in APIs and compatibility with the documented Object.values behavior. Check whether related built-ins have implementation or test entry points. Done means Object.values is available and returns the expected values for the supported object cases described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.