src/executor.js
function executeEach(node, data, result) {
    let each = Extender.processEach(node.props.each, data);
    if (!each) {
        return;
    }
    let nextNode = {
        type: node.type,
        props: Object.assign({}, node.props),
        children: node.children
    };
    nextNode.props.each = null;
    let nextData = Object.assign({}, data);
    each.items.forEach(item => {
        nextData[each.item] = item;
        executeNode(nextNode, nextData, result);
    });
}
function executeEach(node, data, result) {
    let each = Extender.processEach(node.props.each, data);
    if (!each) {
        return;
    }
    let nextNode = {
        type: node.type,
        props: Object.assign({}, node.props),
        children: node.children
    };
    nextNode.props.each = null;
    let nextData = Object.assign({}, data);
    each.items.forEach(item => {
        nextData[each.item] = item;
        executeNode(nextNode, nextData, result);
    });
}
function executeEach ( node , data , result ) { let each = Extender . processEach ( node . props . each , data ) ; if ( ! each ) { return ; } let nextNode = { type : node . type , props : Object . assign ( { } , node . props ) , children : node . children } ; nextNode . props . each = null ; let nextData = Object . assign ( { } , data ) ; each . items . forEach ( item => { nextData [ each . item ] = item ; executeNode ( nextNode , nextData , result ) ; } ) ; }
(object, object, array) => undefined
( object object array ) = > undefined