ee.List.replace
Replaces the first occurrence of oldval in list with newval.
Usage | Returns |
---|
List.replace(oldval, newval) | List |
Argument | Type | Details |
---|
this: list | List | |
oldval | Object | |
newval | 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 2024-06-05 UTC.
[null,null,["Last updated 2024-06-05 UTC."],[[["The `replace` method substitutes the first instance of `oldval` within the list with `newval`."],["It operates on a list and returns a modified version of the same list."],["The method requires the original list (`this`), the value to be replaced (`oldval`), and its replacement (`newval`)."]]],[]]