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

keys

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

An alias of Object.keys specific to ReadonlyRecord.

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

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

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

§Type Parameters

§Parameters

§Return Type

§
ReadonlyArray<string>
[src]