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

deleteAt

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

Remove the value and key at key from a ReadonlyRecord. If the record does not hold the key then no change is made and the original record is returned.

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

const result1 = pipe(
  { one: 1, two: 2 },
  R.deleteAt('one'),
); // { two: 2 }
const result2 = pipe(
  { two: 2 },
  R.deleteAt('one'),
); // No Change { two: 2 }

function deleteAt(key: string): <A>(ua: ReadonlyRecord<A>) => ReadonlyRecord<A>;
§
deleteAt(key: string): <A>(ua: ReadonlyRecord<A>) => ReadonlyRecord<A>
[src]

§Parameters

§
key: string
[src]

§Return Type