Package Exports
- @upendra.manike/object-helpers
- @upendra.manike/object-helpers/dist/index.js
- @upendra.manike/object-helpers/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@upendra.manike/object-helpers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
object-helpers
Object manipulation utilities - deep clone, deep merge, pick/omit, flatten nested objects.
Installation
npm install @upendra.manike/object-helpersUsage
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');License
MIT