Skip to content

Commit

Permalink
Merge branch 'blainesch-patch-1'
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed May 19, 2017
2 parents bd1af60 + fc66d31 commit 9e5eeb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CUSTOM.md
Expand Up @@ -288,6 +288,11 @@ it.util.toHash(['a', 'b', 'c']) // { a: true, b: true, c: true }
```


##### .equal(value1, value2) -> Boolean

Performs deep equality comparison. This function is used in keywords `enum`, `constant`, `uniqueItems` and can be used in custom keywords.


##### .getProperty(String key) -> String

Converts the string that is the key/index to access the property/item to the JavaScript syntax to access the property (either "." notation or "[...]" notation).
Expand Down
1 change: 1 addition & 0 deletions lib/compile/util.js
Expand Up @@ -9,6 +9,7 @@ module.exports = {
toHash: toHash,
getProperty: getProperty,
escapeQuotes: escapeQuotes,
equal: require('./equal'),
ucs2length: require('./ucs2length'),
varOccurences: varOccurences,
varReplace: varReplace,
Expand Down

0 comments on commit 9e5eeb1

Please sign in to comment.