type-plus
Version:
Provides additional types for TypeScript.
13 lines • 354 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.drop = void 0;
/**
* drop a particular value from an array.
*
* 💀 *deprecated* the type does not sufficiently cover the use cases.
*/
function drop(array, value) {
return array.filter(v => v !== value);
}
exports.drop = drop;
//# sourceMappingURL=drop.js.map