Skip to content

Commit

Permalink
fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
nandomoreirame committed Dec 15, 2019
1 parent 3142108 commit 1d9ae92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-restricted-globals:0 */

export const double = value => {
export const double = (value = 0) => {
try {
if (Object.prototype.toString.call(value) !== '[object Number]') {
throw new TypeError('not a number');
Expand Down

0 comments on commit 1d9ae92

Please sign in to comment.