Skip to content

Commit

Permalink
Use typeof === 'undefined' instead of void 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jetpacmonkey committed Jan 26, 2018
1 parent e4f7e30 commit 509f2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/prop-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 509f2cb

Please sign in to comment.