'use strict';

/**
 * Removes an element from an array, returning the deleted element.
 */
const removeIndex = (array, index) => array.splice(index, 1)[0];

exports.removeIndex = removeIndex;

//# sourceMappingURL=array-b1e04a85.js.map