Skip to content

Commit 509f2cb

Browse files
committed
Use typeof === 'undefined' instead of void 0
1 parent e4f7e30 commit 509f2cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/prop-types.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ module.exports = {
467467
* the property is declared without the need for further analysis.
468468
*/
469469
function buildTypeAnnotationDeclarationTypes(annotation, seen) {
470-
if (seen === void 0) {
470+
if (typeof seen === 'undefined') {
471471
// Keeps track of annotations we've already seen to
472472
// prevent problems with recursive types.
473473
seen = new Set();

0 commit comments

Comments
 (0)