n2words
Version:
Convert numbers to words in 70+ languages with zero dependencies. Supports BigInt, decimals, and browser/Node.js environments.
13 lines (12 loc) • 457 B
TypeScript
/**
* Checks if a value is a plain object (not null, array, or other object types).
*
* A plain object is one created by:
* - Object literal: `{}`
* - Object.create(null): null-prototype object
*
* This excludes arrays, class instances, Map, Set, and other object types.
* @param {unknown} value Value to check
* @returns {value is object} True if value is a plain object
*/
export declare function isPlainObject(value: unknown): value is object;