Tile - Array - Shift – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Shift(Array)

YlandsTile-195.png

YlandsTile-195-rv.png

shift(): T;

Returns

any

Description

The shift instruction removes the first object of an array. This instruction changes the length of original array.

Shift(Array)

YlandsTile-901.png

shift(): T[];

Returns

any[]

Description

The shift instruction removes the first object of an array.

Notes

  • This instruction changes the length of original array.