diff options
author | Joas Schilling <coding@schilljs.com> | 2021-08-23 15:47:50 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-08-23 15:47:50 +0200 |
commit | 228aeb4dd17c89b6698b6d28aea91873147df55c (patch) | |
tree | 0287f2555a4a911bce74e369ff37dc3f4179dc39 /src/mixins/readableNumber.js | |
parent | 4891e8017f4d4e837a7cde52c164abc61c1a72a7 (diff) |
Autofixes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/mixins/readableNumber.js')
-rw-r--r-- | src/mixins/readableNumber.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mixins/readableNumber.js b/src/mixins/readableNumber.js index 944f703cf..78057cecf 100644 --- a/src/mixins/readableNumber.js +++ b/src/mixins/readableNumber.js @@ -29,7 +29,7 @@ const readableNumber = { * 9432670284 => 943 267 0284 * * @param {string} number The number to make readable - * @returns {string} + * @return {string} */ readableNumber(number) { const chunks = this.stringChop(number, 3) @@ -42,9 +42,10 @@ const readableNumber = { /** * Copied from https://www.w3resource.com/javascript-exercises/javascript-string-exercise-17.php + * * @param {string} str The string to chop * @param {number} size Size of the chunks - * @returns {string[]} + * @return {string[]} */ stringChop(str, size) { str = String(str) |