Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherry committed Apr 12, 2020
1 parent 028ce71 commit 50a3a4a
Show file tree
Hide file tree
Showing 3 changed files with 268 additions and 168 deletions.
10 changes: 5 additions & 5 deletions lib/validate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
'use strict';

function isObject(value){
return Object.prototype.toString.call(value) === '[object Object]';
}

module.exports = function validate(options){
if(!isObject(options)){
throw new Error('NEL must be called with an object argument.');
Expand Down Expand Up @@ -42,8 +46,4 @@ module.exports = function validate(options){
}
});
}
};

function isObject(value){
return Object.prototype.toString.call(value) === '[object Object]';
}
};
Loading

0 comments on commit 50a3a4a

Please sign in to comment.