premake/website/docs/table.contains.md

20 lines
325 B
Markdown
Raw Normal View History

2021-03-11 20:29:22 +00:00
Determines if an array contains a particular value.
```lua
table.contains(arr, value)
```
### Parameters ###
`arr` is a table containing indexed elements. *value* is the value for which to search.
### Return Value ###
True if the array contains the value, false otherwise.
### Availability ###
Premake 4.4 or later.