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.
예제
구문
subset(list, start, [count])
매개변수
list
Array:
Array to extract from
start
Integer:
position to begin
count
Integer:
number of values to extract
Returns
Array: Array of extracted elements
Notice any errors or typos? Please let us know. Please feel free to edit src/utilities/array_functions.js and open a pull request!