From 509f2cbc211d1c31536d7d778b6b6d162b7c86bc Mon Sep 17 00:00:00 2001 From: Jeremy Tice Date: Fri, 26 Jan 2018 09:39:49 -0500 Subject: [PATCH] Use typeof === 'undefined' instead of void 0 --- lib/rules/prop-types.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules/prop-types.js b/lib/rules/prop-types.js index 3938a3df3c..7466c3a2f1 100644 --- a/lib/rules/prop-types.js +++ b/lib/rules/prop-types.js @@ -467,7 +467,7 @@ module.exports = { * the property is declared without the need for further analysis. */ function buildTypeAnnotationDeclarationTypes(annotation, seen) { - if (seen === void 0) { + if (typeof seen === 'undefined') { // Keeps track of annotations we've already seen to // prevent problems with recursive types. seen = new Set();