This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/website/docs/table.extract.md
2021-03-12 22:10:24 +01:00

21 lines
379 B
Markdown

Enumerates an array of objects and returns a new table containing only the value of one particular field.
```lua
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.