پرش به محتوا

Z13398: نۊسخه'نˇ تؤفير

Wikifunctions جي
Dolphyb (گب | ياوري‌ئن)
بدون خلاصۀ ویرایش
GrounderUK (گب | ياوري‌ئن)
BigInt index converted to Number: executes correctly but tests fail
 
۱ کارگير دچينواچين بۊبؤ (۱ مئني نؤسخه نۊشؤن بدأ نۊبؤ)
رچ ۱۰: رچ ۱۰:
"Z14K3": {
"Z14K3": {
"Z1K1": "Z16",
"Z1K1": "Z16",
"Z16K1": {
"Z16K1": "Z600",
"Z16K2": "function Z13397( Z13397K1, Z13397K2 ) {\n\tconst list = Z13397K1, index = Number(Z13397K2);\n\t\n\t//if the index is invalid such negative value or is higher than length of the list\n\tif(isNaN(index) || index \u003C 0 || index-1 \u003E list.length-1)\n\t return;\n\t \n\treturn list[index \u003E 0 ? index-1 : index];\n\n}"
"Z1K1": "Z61",
"Z61K1": "javascript"
},
"Z16K2": "function Z13397( Z13397K1, Z13397K2 ) {\n\tconst list = Z13397K1, index = parseInt(Z13397K2);\n\t\n\t//if the index is invalid such negative value or is higher than length of the list\n\tif(isNaN(index) || index \u003C 0 || index-1 \u003E list.length-1)\n\t return;\n\t \n\treturn list[index \u003E 0 ? index-1 : index];\n\n}"
}
}
},
},

هسأىي نۊسخه تا ‏۳۱ مئى ۲۰۲۴، ساعت ۱۷:۴۴

This page displays in a limited way without JavaScript.