tbhvishal/js-toolbox

[FEATURE] Add deepClone() utility function

Open

#6 opened on Oct 16, 2025

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (2 forks)auto 404
enhancementgood first issuehelp wanted

Repository metrics

Stars
 (5 stars)
PR merge metrics
 (PR metrics pending)

Description

What utility would you like to add? Add a deepClone() function to create deep copies of objects.

Example usage:

import { deepClone } from './src/objects.js';

const original = { a: 1, b: { c: 2 } };
const copy = deepClone(original);
copy.b.c = 999;
console.log(original.b.c); // Still 2

Contributor guide