sussy-util
Version:
Util package made by me
11 lines (10 loc) • 558 B
TypeScript
import { MutableObject } from '../Types';
/**
* Converts the attributes of a mutable object into an array.
* @template T - The type of the attributes.
* @param {MutableObject<T>} obj - The mutable object whose attributes will be converted.
* @param {boolean} [removeNull] - Optional. Specifies whether to remove null values from the resulting array.
* @returns {T[]} An array containing the attributes of the mutable object.
*/
declare const attributesToArray: <T>(obj: MutableObject<T>, removeNull?: boolean) => T[];
export default attributesToArray;