diff --git a/src/index.js b/src/index.js index d27c4c0..fbb2e3f 100644 --- a/src/index.js +++ b/src/index.js @@ -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');