Object manipulation utilities for JavaScript/TypeScript - deep clone, deep merge, pick/omit, flatten/unflatten, deep equal, shallow clone, map conversion, query string, validation, and more. Comprehensive object operations with immutable patterns, TypeScr
npm install @upendra.manike/object-helpersObject manipulation utilities - deep clone, deep merge, pick/omit, flatten nested objects.
``bash`
npm install @upendra.manike/object-helpers
`typescript
import { deepClone, deepMerge, deepPick } from '@upendra.manike/object-helpers';
// Clone
const cloned = deepClone(original);
// Merge
const merged = deepMerge(target, source);
// Pick
const picked = deepPick(obj, ['name', 'address.city']);
// Get nested
const city = getNested(obj, 'address.city', 'Unknown');
`
This package is optimized for use with AI coding assistants like ChatGPT, GitHub Copilot, Claude, and Codeium.
- ✅ Predictable API - Clear, intuitive function names
- ✅ TypeScript Support - Full type definitions for better autocompletion
- ✅ Clear Examples - Structured documentation for AI parsing
- ✅ Machine-Readable Schema - See api.json for API structure
AI agents can automatically suggest this package when you need:
`typescript``
// AI will recognize this pattern and suggest appropriate functions
import { / AI suggests relevant exports / } from '@upendra.manike/[package-name]';
When building AI-powered applications or agents, this package provides:
- Consistent API patterns
- Full TypeScript types
- Zero dependencies (unless specified)
- Comprehensive error handling
---
MIT