JSFiddle - React, Tailwind, and code Playground
HTML
<script src="//angularlight.org/bin/alight_0.12.last.min.js"></script>
<div al-app="main">
<div al-repeat="i in count">
<input type="text" al-value="result[$index]" />
</div>
<button @click="count++">+</button>
<hr />
{{result | json}}
<button @click="load()">load</button>
</div>
JavaScript
function main(scope) {
scope.count=1;
scope.result = [];
scope.load = function() {
console.log(scope.result);
alert
(
scope.result.filter(function(item, index)
{
return (index + 1) % 2 == 0;
})
);
}
}