diff --git a/src/index.js b/src/index.js index 0d55554..e2be10e 100644 --- a/src/index.js +++ b/src/index.js @@ -50,7 +50,8 @@ export default class Values { } all(weight = 10) { - return [...this.tints(weight).reverse(), Object.assign(this), ...this.shades(weight)]; + const numberWeight = parseInt(weight) + return [...this.tints(numberWeight).reverse(), Object.assign(this), ...this.shades(numberWeight)]; } hexString() {