UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

10 lines (9 loc) 297 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toPairs = void 0; const main_1 = require("./main"); function toPairs(dict) { const dd = (0, main_1.getValueOr)({}, dict); return Object.keys(dd).map((key) => [key, dd[key]]); } exports.toPairs = toPairs;