Extracts an array of elements from an existing array. The list parameter defines the array from which the elements will be copied, and the start and count parameters specify which elements to extract. If no count is given, elements will be extracted from the start to the end of the array. When specifying the start, remember that the first array element is 0. This function does not change the source array.
Ejemplos
Sintaxis
subset(list, start, [count])
Parámetros
list
Array to extract from
start
position to begin
count
number of values to extract
Notice any errors or typos? Please let us know. Please feel free to edit src/utilities/array_functions.js and open a pull request!