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.include #13

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

objects.include #13

evanplaice opened this issue Aug 3, 2019 · 2 comments
Labels
enhancement New feature or request invalid This doesn't seem right operator

Comments

@evanplaice
Copy link
Member

evanplaice commented Aug 3, 2019

Filters an object by key to only include properties whitelisted by the second arg

Milestones

  • implementation
  • tests
  • jsdoc

Details

To accomplish this, the object needs to be:

  • converted to an 2D array using Object.Entries()
  • filtered by key
  • converted back to an object

Due to the reliance on Object.entries() this function may not be compatible with some browsers.

References

@evanplaice evanplaice added enhancement New feature or request operator labels Aug 3, 2019
@evanplaice evanplaice changed the title Operator(objects.include) objects.include Aug 3, 2019
@evanplaice
Copy link
Member Author

evanplaice commented Nov 14, 2019

Added in v0.29

@jkvyff jkvyff reopened this Jan 15, 2020
@jkvyff jkvyff added the invalid This doesn't seem right label Jan 15, 2020
@evanplaice
Copy link
Member Author

evanplaice commented Jan 15, 2020

Removed in v0.81.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request invalid This doesn't seem right operator
Projects
None yet
Development

No branches or pull requests

2 participants