UNPKG

@rimbu/base

Version:

Utilities to implement Rimbu collections

21 lines 529 B
/** * Returns the first element of a 2-tuple. * @typeparam K - the first element type * @typeparam V - the second element type * @param entry - the tuple * @returns the first element */ export function first(entry) { return entry[0]; } /** * Returns the second element of a 2-tuple. * @typeparam K - the first element type * @typeparam V - the second element type * @param entry - the tuple * @returns the second element */ export function second(entry) { return entry[1]; } //# sourceMappingURL=entry.mjs.map