Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.List.replaceAll
Stay organized with collections
Save and categorize content based on your preferences.
Replaces all occurrences of oldval in list with newval.
Usage | Returns | List.replaceAll(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."],[[["\u003cp\u003eThe \u003ccode\u003ereplaceAll\u003c/code\u003e method substitutes all instances of \u003ccode\u003eoldval\u003c/code\u003e within the list with \u003ccode\u003enewval\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt operates directly on the existing list and returns the modified list.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eoldval\u003c/code\u003e represents the value to be replaced and \u003ccode\u003enewval\u003c/code\u003e represents the replacement value.\u003c/p\u003e\n"]]],[],null,["# ee.List.replaceAll\n\nReplaces all occurrences of oldval in list with newval.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-----------------------------------|---------|\n| List.replaceAll`(oldval, newval)` | List |\n\n| Argument | Type | Details |\n|--------------|--------|---------|\n| this: `list` | List | |\n| `oldval` | Object | |\n| `newval` | Object | |"]]