Files
30-seconds-of-code/node_modules/xstate/lib/each.js
2019-08-20 15:52:05 +02:00

15 lines
456 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
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
};
}
exports.each = each;
//# sourceMappingURL=each.js.map