12 lines
365 B
JavaScript
12 lines
365 B
JavaScript
export function each(collection, item, indexOrActions, maybeActions) {
|
|
var actions = maybeActions || indexOrActions;
|
|
var index = maybeActions ? indexOrActions : undefined;
|
|
return {
|
|
type: 'xstate.foreach',
|
|
collection: collection,
|
|
item: item,
|
|
index: index,
|
|
actions: actions
|
|
};
|
|
}
|
|
//# sourceMappingURL=each.js.map
|