MCPcopy Create free account
hub / github.com/Make-md/makemd / removeKey

Function removeKey

src/core/utils/objects.ts:57–60  ·  view source on GitHub ↗
(object: {[key: string]: any}, key: string)

Source from the content-addressed store, hash-verified

55}
56
57export const removeKey = (object: {[key: string]: any}, key: string) =>{
58 delete object[key]
59return object;
60}
61export const replaceKeys = (object1: {[key: string]: any}, object2: {[key: string]: string}) => {
62 // Create a new empty object to hold the result
63 const newObject : {[key: string]: any} = {};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected