Tile - Array - Shift – Ylands

From Bohemia Interactive Community
Revision as of 15:23, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.