Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Mar 6, 2022
1 parent 85e934a commit 112c890
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config/normalize/lib/star_dot_path/tokens/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import { REGEXP_TOKEN } from './regexp.js'
// Order is significant as they are tested serially
const TOKEN_TYPES = [ANY_TOKEN, REGEXP_TOKEN, ARRAY_TOKEN, PROP_TOKEN]

// Retrieve the type of a given token object
// Retrieve the type of a given token parsed object
export const getObjectTokenType = function (token) {
return TOKEN_TYPES.find((tokenType) => tokenType.testObject(token))
}

// Retrieve the type of a given token string
// Retrieve the type of a given token serialized string
export const getStringTokenType = function (token) {
return TOKEN_TYPES.find((tokenType) => tokenType.testString(token))
}

0 comments on commit 112c890

Please sign in to comment.