Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

updated docs for forEach

  • Loading branch information...
commit fd14839354e68d8475927c341e2b7d51ed6e84d0 1 parent ca93156
@micha authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 README.markdown
11 README.markdown
@@ -151,6 +151,17 @@ functions and properties are available from within a jsawk script:
+ forEach(array, string)
+ Compiles 'string' into a function and iterates over the 'array',
+ running the function once for each element. The function has
+ access to the special variables 'index' and 'item' which are,
+ respectively, the array index and the array element. The 'this'
+ object is set to the array element each time the function runs.
+ params: Array array (array to iterate over)
+ String string (the function source)
+ return: void
Get the next record from the input set. This will prevent jsawk
from iterating over that record.

0 comments on commit fd14839

Please sign in to comment.
Something went wrong with that request. Please try again.