home/coding/prompt-192

PROMPT

GPTClaudeDeepSeek··1,381 copies·updated 2026-07-14
prompt-192.prompt
Write a TypeScript function `deepMerge` in a file named exactly `deep-merge.ts`.

It recursively deep-merges two values `a` and `b` of arbitrary, unknown JSON-like
shape: each value may be a nested plain object, an array, or a primitive. For two
plain objects it merges their keys recursively; otherwise `b` wins. Export
`deepMerge`. Keep it concise. Do not write tests.

when to use it

Community prompt sourced from the open-source GitHub repo christopherlouet/claude-base (MIT). A "PROMPT" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

christopherlouet/claude-base · MIT