UNPKG

@draconides/object

Version:
27 lines 552 B
/** * Clean up the first level of an object * @param object - object to clean * @example * ``` * // Create an empty object * const myObject = { * key: undefined, * value: null, * index: 1, * subObject: { * value: null, * }, * }; * * // Clean up the object * cleanUp(myObject); * * // Return {index: 1, subObject: {value: null}} * console.log(myObject); * ``` * @version 0.0.4 * @since 0.0.3 */ declare const cleanUp: (object: any) => void; export default cleanUp; //# sourceMappingURL=cleanUp.d.ts.map