Skip to content

Commit

Permalink
Fix SyntaxError: Illegal return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
gitim committed Dec 16, 2019
1 parent 424e38e commit 6234d0d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ if (!$Map) {
// `Map` is not present in this environment.
return false;
};
return;
}

var $mapHas = $Map ? Map.prototype.has : null;
Expand All @@ -20,7 +19,6 @@ if (!$mapHas) {
// `Map` does not have a `has` method
return false;
};
return;
}

module.exports = function isMap(x) {
Expand Down

0 comments on commit 6234d0d

Please sign in to comment.