Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

entries

import { entries } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/record.ts";

An alias of Object.entries

@example
import * as R from "./record.ts";

const data: R.ReadonlyRecord<string> = {
  hello: "world",
  foo: "bar",
};

// [["hello", "world"], ["foo", "bar"]]
const result1 = R.entries(data);
const result2 = R.entries({}); // []
function entries<A>(ua: ReadonlyRecord<A>): ReadonlyArray<[string, A]>;
§
entries<A>(ua: ReadonlyRecord<A>): ReadonlyArray<[string, A]>
[src]

§Type Parameters

§Parameters

§Return Type

§
ReadonlyArray<[string, A]>
[src]