Skip to content

table.extract

starkos edited this page Apr 10, 2021 · 4 revisions

⚠️ We have a new website! Visit now for the most update to date documentation.
       This wiki is no longer being maintained.


Enumerates an array of objects and returns a new table containing only the value of one particular field.

table.extract(arr, "key")

Parameters

arr is an array of tables. key is the name of the field to be extracted.

Return Value

A new array containing only the values of the provided field key.

Availability

Premake 4.4 or later.

Clone this wiki locally