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

Return the data field of a element of the ProbabilityObjectArray

Parameters

key: K

The key of the element whose data shall be retrieved

Returns

V

The data object