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!

संबंधित संदर्भ