leobalter / leobalter/object-enumerables

Use cases

Open
#5 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
No language data
Stars
7
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Let's have a list of real world use cases:

  • jQuery's $.extend and Underscore/Lodash _.extend and _.defaults iterate over own and inherited enumerable properties. In the case of Lodash, keysIn is used to get the property names to iterate over. It's also used in Underscore _.functions and Lodash's _.functionsIn.

  • The use of valuesIn can be mapped to the use of values which is used in lib helpers like Underscore/Lodash includes for seeing if a value is in an object or sample which grabs a random value from an object.

  • I've found folks dig the inherited forms of these methods when working with data objects returned by Node.js DB packages (<TODO get names of packages>).

    Updated:
    mongoose

  • I have a method _.toPlainObject which flattens inherited properties to own properties of a new object. This is handy for working with Object.assign and keysIn is used to implement that.

Contributor guide

No contributing guide indexed for this repository

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

No target file is named. Start by locating the repository's documentation or examples area, then compare the listed jQuery, Underscore/Lodash, Mongoose, and Object.assign use cases with existing material. Done means adding a concise, accurate list and replacing the TODO package name if verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.