5 ms·
Unless you use a language that actually enforces you to pass required parameters to a function call.
by spdionis 9y ago
Unless you use a language that actually enforces you to pass required parameters to a function call.
- carussell 9y ago... which still wouldn't fix this problem, because the initializer is not a required parameter. It's allowed to be omitted by design, to signify that the first element shall be skipped and never passed as the second arg to the callback—or to put it another way, instead of being called once for each element, it's meant to handle the gaps between elements.