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

lookupAt

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

Lookup the value at key. Returns an Option, where None indicates that the record does not hold the key.

@example
import * as R from "./record.ts";
import { pipe } from "./fn.ts";

const result1 = pipe(
  { one: 1, two: 2 },
  R.lookupAt('one'),
); // Some(1)
const result2 = pipe(
  { one: 1, two: 2 },
  R.lookupAt('three'),
); // None
function lookupAt(key: string): <A>(ua: ReadonlyRecord<A>) => Option<A>;
§
lookupAt(key: string): <A>(ua: ReadonlyRecord<A>) => Option<A>
[src]

§Parameters

§
key: string
[src]

§Return Type

§
<A>(ua: ReadonlyRecord<A>) => Option<A>
[src]