ee.List.replaceAll
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, सूची में मौजूद oldval की सभी वैल्यू को newval से बदलता है.
इस्तेमाल | रिटर्न |
---|
List.replaceAll(oldval, newval) | सूची |
आर्ग्यूमेंट | टाइप | विवरण |
---|
यह: list | सूची | |
oldval | ऑब्जेक्ट | |
newval | ऑब्जेक्ट | |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-26 (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 | |"]]