UNPKG

sussy-util

Version:
11 lines (10 loc) 558 B
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;