Skip to content

Commit

Permalink
Check for error in blank()
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinvdpol committed Oct 8, 2024
1 parent d9d88f2 commit 5980e9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
* @return boolean
*/
const blank = function blank(value) {
if (value instanceof Error) {
return false;
}

if (typeof value === 'undefined') {
return true;
}
Expand Down

0 comments on commit 5980e9d

Please sign in to comment.