0

im having trouble understanding something in JS docs syntax.

for example this is taken from ezime docs, reduce (fn[,init...)

what the "," is for?

thank you!

metalice
  • 941
  • 1
  • 8
  • 10
  • Please provide a link the the documentation mentioned in your post. Additionally, Stack Overflow provides text formatting options using Markdown or the rich editor which help others read your question. – Peter Nov 04 '18 at 18:09
  • 1
    The `[...]` means optional, so you can either omit it, then the signature is `(fn)` or you can add it, then the signature is `(fn, init)`. the comma is to seperate parameters – Jonas Wilms Nov 04 '18 at 18:13

0 Answers0