34
loading...
This website collects cookies to deliver better user experience
index
file to explain what the component does./**
* @desc Creates a welcome message
*/
function sayHello(name) {
return `Hello ${name}`;
}
let date = new Date(); // store today's date to calculate the elapsed time
/**
* Creates an array of elements split into groups the length of `size`.
* If `array` can't be split evenly, the final chunk will be the remaining
* elements.
*
* @since 3.0.0
* @category Array
* @param {Array} array The array to process.
* @param {number} [size=1] The length of each chunk
* @returns {Array} Returns the new array of chunks.
* @example
*
* chunk(['a', 'b', 'c', 'd'], 2)
* // => [['a', 'b'], ['c', 'd']]
*
* chunk(['a', 'b', 'c', 'd'], 3)
* // => [['a', 'b', 'c'], ['d']]
*/
function chunk(array, size = 1) {
// logic
}
/**
* Sets the label property of a new form.
*
* @param label text for label of form
*/
function setFormLabel(label) {
// logic
}
Pro tip: try to use a free Stepsize VSCode extension to add code context for tech debt, refactoring, or TODOs.
/**
* Sets the label property of a new form.
*
* @see {@link https://myinternaldocument.com}
*/
function setFormLabel(label) {
// logic
}