We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isMap
isSet
1 parent b614eaa commit fc51047Copy full SHA for fc51047
index.js
@@ -177,7 +177,7 @@ function indexOf(xs, x) {
177
}
178
179
function isMap(x) {
180
- if (!mapSize) {
+ if (!mapSize || !x || typeof x !== 'object') {
181
return false;
182
183
try {
@@ -193,7 +193,7 @@ function isMap(x) {
193
194
195
function isSet(x) {
196
- if (!setSize) {
+ if (!setSize || !x || typeof x !== 'object') {
197
198
199
0 commit comments