From 6234d0d16da82bdcc70883fabe636c33b7ed1936 Mon Sep 17 00:00:00 2001 From: Tim Gibadullin Date: Mon, 16 Dec 2019 13:32:30 +0300 Subject: [PATCH] Fix SyntaxError: Illegal return statement --- index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/index.js b/index.js index 5b44368..02e7507 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,6 @@ if (!$Map) { // `Map` is not present in this environment. return false; }; - return; } var $mapHas = $Map ? Map.prototype.has : null; @@ -20,7 +19,6 @@ if (!$mapHas) { // `Map` does not have a `has` method return false; }; - return; } module.exports = function isMap(x) {