Tile - Array - Remove First – Ylands

From Bohemia Interactive Community
Revision as of 14: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

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.