Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 13, 2022
1 parent 6fa7b4b commit 21342d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/config/normalize/lib/wild_wild_path/iterate/expand.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export const expandToken = function (
// - known, i.e. returned: prop|index|slice tokens
// - unknown, i.e. not returned: any|regexp tokens
// Tokens like wildcards cannot do this since there is known property to add.
// Both non-enumerable and inherited properties:
// - Are not listed by token types returning multiple entries like *
// - But are handled by the other ones
export const handleMissingValue = function (value, token, classes) {
const tokenType = getObjectTokenType(token)
const missing = tokenType.isMissing(value, classes)
Expand Down
2 changes: 1 addition & 1 deletion src/config/normalize/lib/wild_wild_path/tokens/any.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const normalize = function ({ type }) {
}

// Use the token to list entries against a target value.
// We purposely ignore symbol properties by using `Object.keys()`.
// By using `for in`, we purposely exclude both symbols and inherited properties
const iterate = function (value) {
return Array.isArray(value)
? value.map((childValue, index) => ({
Expand Down

0 comments on commit 21342d6

Please sign in to comment.