Header Ads

Header ADS

What is the purpose of the array splice method?



 In splice(), items are added/removed from an array and then returned. 

The first argument specifies the array position for insertion or deletion, while the optional second argument indicates the number of elements to be deleted. 

The array is expanded with each additional argument.

No comments

Powered by Blogger.