Skip to content

Commit

Permalink
Use undefined instead of null (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richienb authored Sep 23, 2020
1 parent feef623 commit 1f1e5fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ function round(method, number, precision) {
return result;
}

module.exports = round.bind(null, 'round');
module.exports.up = round.bind(null, 'ceil');
module.exports.down = round.bind(null, 'floor');
module.exports = round.bind(undefined, 'round');
module.exports.up = round.bind(undefined, 'ceil');
module.exports.down = round.bind(undefined, 'floor');

0 comments on commit 1f1e5fc

Please sign in to comment.