medikoo / medikoo/dbjs

Allow to configure enumerability of property

Open
#22 0 comments 0 reactions 1 assignee View on GitHub

@medikoo is already working on this.

Since Jan 14, 2015.

Dominant language
JavaScript
Stars
27
Forks
4
PR merge metrics
No merged PRs in 30d

Description

/cc @kamsi

At this point all defined properties, are set as enumerable. There's no way to tweak that.

There are however use cases, when we may want non-enumerable property on an object. Good example is map of same type values, where we want to add some custom property, that should not be treated as part of map collection, and should not be iterable with forEach.

There's a specific use case for that in eRegistrations app, where we have map of sections, and we need a property that will calculate overall status of the sections. At this point we put it aside on an object as sectionsStatus, while more natural would be to have it as sections.status.

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.