![]() If initialValue is specified, callbackFn starts executing with the first value in the array as currentValue. initialValue OptionalĪ value to which accumulator is initialized the first time the callback is called. On first call, 0 if initialValue was specified, otherwise 1. The index position of currentValue in the array. On first call, the value of array if an initialValue was specified, otherwise the value of array. On first call, initialValue if specified, otherwise the value of array. The value resulting from the previous call to callbackFn. The function is called with the following arguments: accumulator ![]() For the last invocation, the return value becomes the return value of reduce(). Its return value becomes the value of the accumulator parameter on the next invocation of callbackFn.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |