ee.List.contains
Returns true if list contains element.
Usage | Returns |
---|
List.contains(element) | Boolean |
Argument | Type | Details |
---|
this: list | List | |
element | Object | |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["This method checks if a given element is present within a list."],["It returns true if the element is found in the list, otherwise it returns false."],["The method takes the list and the element to search for as arguments."]]],["The core function, `List.contains(element)`, checks for the presence of a specified element within a list. It accepts two arguments: the `list` itself (of type List) and the `element` (of type Object) to search for. The function returns a Boolean value, specifically `true` if the `element` exists in the `list`, and presumably `false` otherwise.\n"]]