Skip to content

Commit

Permalink
Update number.js
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot authored Mar 27, 2020
1 parent bfc10f5 commit 0230233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cast/number.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const assert = require('assert');

module.exports = function castNumber(val) {

if (val == null || val === undefined) {
if (val == null) {
return val;
}
if (val === '') {
Expand Down

0 comments on commit 0230233

Please sign in to comment.