Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/files/index.d.ts>toPairs

Faster and smaller alternative to Ramda
Latest
function toPairs
import { toPairs } from "https://deno.land/x/rambda@9.4.1/files/index.d.ts";

Type Parameters

O extends object
K extends Extract<keyof O, string | number>

Returns

Array<[key in K]: [`${key}`, O[key]][K]>

Parameters

obj: Record<string | number, S>

Returns

Array<[string, S]>