leobalter / leobalter/object-enumerables
Use cases
Nobody has claimed this yet.
- 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
$.extendand Underscore/Lodash_.extendand_.defaultsiterate over own and inherited enumerable properties. In the case of Lodash,keysInis used to get the property names to iterate over. It's also used in Underscore_.functionsand Lodash's_.functionsIn. -
The use of
valuesIncan be mapped to the use ofvalueswhich is used in lib helpers like Underscore/Lodashincludesfor seeing if a value is in an object orsamplewhich 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
_.toPlainObjectwhich flattens inherited properties to own properties of a new object. This is handy for working withObject.assignandkeysInis used to implement that.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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