MDN is my primary Javascript resource. I often see a notation like ( currentValue[, index[, array]]) as in:
( currentValue[, index[, array]])
l
The square brackets mean that the enclosed parameter is optional.
Refer MDN syntax section for more info.