Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";
- var ActionList_1 = require('../actions/ActionList');
- exports.things = function (state, action) {
- if (state === void 0) { state = []; }
- if (action.type === ActionList_1.ACTION_GET) {
- var inventoryAction = action;
- var idx = state.indexOf(inventoryAction.item);
- return state.slice(0, idx).concat(state.slice(idx + 1));
- }
- return state;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement