Shortening an array:
The following example shortens the array "arrayofnumbers" to a length of 3 if the current length is greater than 3.
![Cover image for Shortening an array: | Javascript tip ð¡](https://media.dev.to/cdn-cgi/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fx3f4j0awti2ouh5dikqm.png)
For further actions, you may consider blocking this person and/or reporting abuse
Shortening an array:
The following example shortens the array "arrayofnumbers" to a length of 3 if the current length is greater than 3.
For further actions, you may consider blocking this person and/or reporting abuse
keploy -
Judith-Excel-Sharing -
Vinay Madan -
3a5abi 𥷠-
Top comments (0)