22
33/* eslint-disable max-params */
44
5- /* Expose. */
65module . exports = is
76
8- /* Assert if `test` passes for `node`.
9- * When a `parent` node is known the ` index` of node */
7+ // Assert if `test` passes for `node`. When a `parent` node is known the
8+ // ` index` of node.
109function is ( test , node , index , parent , context ) {
1110 var hasParent = parent !== null && parent !== undefined
1211 var hasIndex = index !== null && index !== undefined
@@ -66,8 +65,8 @@ function convertAll(tests) {
6665 return results
6766}
6867
69- /* Utility assert each property in `test` is represented
70- * in `node`, and each values are strictly equal. */
68+ // Utility assert each property in `test` is represented in `node`, and each
69+ // values are strictly equal.
7170function matchesFactory ( test ) {
7271 return matches
7372
@@ -103,8 +102,8 @@ function anyFactory(tests) {
103102 }
104103}
105104
106- /* Utility to convert a string into a function which checks
107- * a given node’s type for said string. */
105+ // Utility to convert a string into a function which checks a given node’s type
106+ // for said string.
108107function typeFactory ( test ) {
109108 return type
110109
@@ -113,7 +112,7 @@ function typeFactory(test) {
113112 }
114113}
115114
116- /* Utility to return true. */
115+ // Utility to return true.
117116function ok ( ) {
118117 return true
119118}
0 commit comments