• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

panates / jsopen-objects / 15261647098

26 May 2025 08:37PM UTC coverage: 98.061% (-0.5%) from 98.537%
15261647098

push

github

erayhanoglu
1.6.2

117 of 120 branches covered (97.5%)

Branch coverage included in aggregate %.

490 of 499 relevant lines covered (98.2%)

21.62 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/src/clone.ts
1
import { StrictOmit } from 'ts-gems';
1✔
2
import { merge } from './merge.js';
1✔
3

1✔
4
export function clone<T extends object>(obj: T, options?: merge.Options): T {
1✔
5
  return merge({} as T, obj, {
2✔
6
    ...options,
2✔
7
    deep: options?.deep ?? true,
2!
8
  });
2✔
9
}
2✔
10

1✔
11
export function deepClone<T extends object>(
1✔
12
  obj: T,
×
13
  options?: StrictOmit<merge.Options, 'deep'>,
×
14
): T {
×
15
  return clone(obj, { ...options, deep: 'full' });
×
16
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc