Tile - Array - Remove First – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Remove First(Array)

YlandsTile-195.png

YlandsTile-195-rv.png

shift(): T;

Returns

any

Availability

Client, Server, Custom Controller

Description

Removes the first object of an array.

Notes

  • This instruction changes the length of original array.
  • Expression variant returns new length.

Remove First(Array)

YlandsTile-901.png

shift(): T[];

Returns

any[]

Availability

Client, Server, Custom Controller

Description

The shift instruction removes the first object of an array.

Notes

  • This instruction changes the length of original array.
  • Expression variant returns new length.