gaffa-for-each

forEach action for gaffa

Usage no npm install needed!

<script type="module">
  import gaffaForEach from 'https://cdn.skypack.dev/gaffa-for-each';
</script>

README

gaffa-for-each

forEach action for gaffa

example (inspect the source)

Install:

npm i gaffa-for-each

Add to gaffa:

var ForEach = require('gaffa-for-each');

gaffa.registerConstructor(ForEach);

API

Properties (instanceof Gaffa.Property)

target (get)

The target object who's keys to itterate over.

Actions

forEach

The actions to call for each item present in the target.