unshift()

Author Topic: unshift()  (Read 522 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 44
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Fat Cutter
unshift()
« on: 09-23-2016, 06:11:39 »
The unshift() method is the opposite of the shift() method. It appends a list of elements to the beginning of an array. Here is the method defined as a
prototype of the Array object type, along with an example to demonstrate it:


Code:
Only registered users can see contents. Please click here to Register or Login.
Here is an example of the unshift() function:

Code:
Only registered users can see contents. Please click here to Register or Login.