UNPKG

@gecut/utilities

Version:

The ultimate utility toolkit from Gecut Company, crafted with TypeScript for optimal speed and efficiency. Designed to boost productivity with a suite of fast and optimized tools.

11 lines 441 B
export default function objectPartial(_object, options) { for (const key of Object.keys(_object)) { if (typeof _object[key] === 'object' && _object[key] != null && options[key] != null) { _object[key] = objectPartial(_object[key], options[key]); } else if (options[key] !== true && key in _object) delete _object[key]; } return _object; } //# sourceMappingURL=object-partial.js.map