Update functional-tools.js

This commit is contained in:
Andros Fenollosa 2022-02-03 21:06:03 +01:00 committed by GitHub
parent 89d54a1813
commit 0505745d4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ function updateJSON(key, newValue, json) {
* @param {number} start Beginning of the range. * @param {number} start Beginning of the range.
* @param {number} stop End of range. * @param {number} stop End of range.
* @param {number} step Interval between numbers. Default is 1. * @param {number} step Interval between numbers. Default is 1.
* @return {array} * @return {Array} Sequence.
*/ */
function range(start, stop=undefined, step=1) { function range(start, stop=undefined, step=1) {
const startArray = stop === undefined ? 0 : start; const startArray = stop === undefined ? 0 : start;