checks whether the specified item exists in the component
exists(id: string | number): boolean;
Parameters:id: string | number
- the id of the item in questiontrue
, if the item exists; otherwise, false
.
Example
const item = component.data.exists("1");
Related sample: Data. Exists
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4