Import only what you need
ESM, CommonJS, and UMD bundles
Browser and Node.js utilities
Full TypeScript support
import goldies from 'goldies';
// Array utilities
const uniqueArray = goldies.array.dedupe([1, 2, 2, 3]);
// Object utilities
const cloned = goldies.object.clone({ name: 'John' });
// String utilities
const hasPrefix = goldies.string.startsWith('Hello world', 'Hello');
// Only import what you need for smaller bundle size
import { dedupe } from 'goldies/array/dedupe';
import { clone } from 'goldies/object/clone';
import { startsWith } from 'goldies/string/startsWith';
const uniqueArray = dedupe([1, 2, 2, 3]);
const cloned = clone({ name: 'John' });
const hasPrefix = startsWith('Hello world', 'Hello');