参考 shorten()

shorten()

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

示例

语法

shorten(list)

参数

list

Array to shorten

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

相关参考