Skip to content

Commit

Permalink
Fix isObject checking for null values
Browse files Browse the repository at this point in the history
  • Loading branch information
mbelsky committed Feb 5, 2019
1 parent df46cc6 commit c280ba3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,8 @@ function createKey(pattern, options) {

function isObject(val) {
switch (typeof val) {
case 'null':
return false;
case 'object':
return true;
return val !== null;
case 'function':
return true;
default: {
Expand Down

0 comments on commit c280ba3

Please sign in to comment.