ee.List.replace
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यह फ़ंक्शन, सूची में oldval की पहली एंट्री को newval से बदलता है.
इस्तेमाल | रिटर्न |
---|
List.replace(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\u003ereplace\u003c/code\u003e method substitutes the first instance of \u003ccode\u003eoldval\u003c/code\u003e within the list with \u003ccode\u003enewval\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt operates on a list and returns a modified version of the same list.\u003c/p\u003e\n"],["\u003cp\u003eThe method requires the original list (\u003ccode\u003ethis\u003c/code\u003e), the value to be replaced (\u003ccode\u003eoldval\u003c/code\u003e), and its replacement (\u003ccode\u003enewval\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,["# ee.List.replace\n\nReplaces the first occurrence of oldval in list with newval.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|--------------------------------|---------|\n| List.replace`(oldval, newval)` | List |\n\n| Argument | Type | Details |\n|--------------|--------|---------|\n| this: `list` | List | |\n| `oldval` | Object | |\n| `newval` | Object | |"]]