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 }
§
deleteAt(key: string): <A>(ua: ReadonlyRecord<A>) => ReadonlyRecord<A>
[src]§Return Type
§
<A>(ua: ReadonlyRecord<A>) => ReadonlyRecord<A>
[src]