Skip to content

Commit 0740b9b

Browse files
committed
Ensure to pass Map.prototype as map
1 parent 919d4a7 commit 0740b9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

is-map.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ var toStringTagSymbol = require('es6-symbol').toStringTag
77
, Global = (typeof Map === 'undefined') ? null : Map;
88

99
module.exports = function (x) {
10-
return (x && ((Global && (x instanceof Global)) ||
10+
return (x && ((Global && ((x instanceof Global) || (x === Global.prototype))) ||
1111
(toString.call(x) === id) || (x[toStringTagSymbol] === 'Map'))) || false;
1212
};

0 commit comments

Comments
 (0)