Permalink
Browse files

a little bit better doc for the forEach function

  • Loading branch information...
1 parent 9772c29 commit e49d3fcda3a84b557f6bcba956f69d988ef5daac @jcompagner jcompagner committed Jan 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/org.eclipse.dltk.javascript.core/resources/native-references.xml
@@ -204,7 +204,7 @@
<itemType xsi:type="ref:TypeVariableReference" variable="@ROOT/Array/E"/>
</type>
</members>
- <members xsi:type="ref:Method" name="forEach" description="Calls a function for each element in the array. Optionally with a thisObject argument to use as this when executing callback.">
+ <members xsi:type="ref:Method" name="forEach" description="Calls a function for each element in the array. The callback will be called with 3 arguments (elementValue,elementIndex,traversedArray). Optionally with a thisObject argument to use as this when executing callback.">
<parameters name="callback" directType="Function"/>
<parameters name="thisArg" kind="OPTIONAL"/>
</members>

0 comments on commit e49d3fc

Please sign in to comment.