Invoke a function for each element in an enumerable.
Logging if each number in a range is even or odd could be done like this:
var forEach = ;var sequence =var result = ;;result;
'a at 0''b at 1''c at 2'
Enumerable: See @kingjs/sequence.
action: The action to call for each element in
x: Current element of
i: The index of element
sequence: The elements to pass to
action will be invoked with the same
this as was passed to
With npm installed, run
$ npm install @kingjs/for-each