Skip to content

Commit 1c05db0

Browse files
committed
Refactor comments
1 parent 4035df2 commit 1c05db0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

index.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22

33
/* eslint-disable max-params */
44

5-
/* Expose. */
65
module.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.
109
function 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.
7170
function 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.
108107
function 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.
117116
function ok() {
118117
return true
119118
}

0 commit comments

Comments
 (0)