Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

objects.fromEntries #58

Closed
3 tasks done
evanplaice opened this issue Nov 8, 2019 · 2 comments
Closed
3 tasks done

objects.fromEntries #58

evanplaice opened this issue Nov 8, 2019 · 2 comments
Labels
enhancement New feature or request operator

Comments

@evanplaice
Copy link
Member

evanplaice commented Nov 8, 2019

The inverse operation of Object.prototype.entries() This takes an array of [property, value] arrays and returns an object.

Checklist

  • implementation
  • tests
  • jsdoc

Details

const.log(objects.fromEntries([['age', 12034], ['name', 'Trair'],['state', 'Floating']]));
> { age: 12034, name: 'Trair', state: 'Floating' }

References

@evanplaice
Copy link
Member Author

evanplaice commented Nov 21, 2019

Added in v0.34

@evanplaice evanplaice reopened this Jan 10, 2020
@evanplaice evanplaice changed the title arrays.fromPairs arrays.fromEntries Jan 10, 2020
@evanplaice
Copy link
Member Author

evanplaice commented Jan 10, 2020

Renamed to fromEntries in v0.74.11

@evanplaice evanplaice changed the title arrays.fromEntries objects.fromEntries Jan 10, 2020
@evanplaice evanplaice mentioned this issue Jan 12, 2020
61 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request operator
Projects
None yet
Development

No branches or pull requests

1 participant