Skip to main content
The Deno 2 Release Candidate is here
Learn more
method ProbabilityObjectArray.prototype.drop
import { ProbabilityObjectArray } from "https://deno.land/x/sptaki@1.2.0/utils/mod.ts";

Drop an element from the ProbabilityObjectArray

Parameters

key: K

The key of the element to drop

Returns

ProbabilityObjectArray without the dropped element