레퍼런스 shorten()

shorten()

Decreases an array by one element and returns the shortened array, maps to Array.pop().

예제

구문

shorten(list)

매개변수

list
Array:

Array to shorten

Returns

Array: shortened Array
Notice any errors or typos? Please let us know. Please feel free to edit src/utilities/array_functions.js and open a pull request!

관련 레퍼런스