@rimbu/base
Version:
Utilities to implement Rimbu collections
25 lines • 640 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.first = first;
exports.second = second;
/**
* 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
*/
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
*/
function second(entry) {
return entry[1];
}
//# sourceMappingURL=entry.cjs.map