util-ex
Version:
Browser-friendly enhanced util fully compatible with standard node.js
9 lines (8 loc) • 378 B
TypeScript
/**
* Get all names of an object, include non-enumerable properties.
* @param {object} obj - The object to get names from
* @param {boolean} [inherited] - whether includes inherited properties, defaults to true
* @returns {string[]} An array of all names of the object
*/
export function getAllNames(obj: object, inherited?: boolean): string[];
export default getAllNames;