ts-data-forge
Version:
[](https://www.npmjs.com/package/ts-data-forge) [](https://www.npmjs.com/package/ts-data-forge) [
* - Includes arrays, dates, regex, and other object instances
*
* **Note:** This function returns `true` for arrays. If you need to check for
* plain objects specifically (excluding arrays), use `isRecord()` instead.
*
* @example
*
* ```ts
* const mixed: unknown[] = [{ id: 1 }, null, 'Ada'] as const;
*
* const objects = mixed.filter(isNonNullObject);
*
* assert.deepStrictEqual(objects, [{ id: 1 }]);
* ```
*
* @param u - The value to check
* @returns `true` if `u` is an object and not `null`, `false` otherwise. When
* `true`, TypeScript narrows the type to `object`.
* @see {@link isRecord} - For checking plain objects specifically (excludes arrays)
*/
export declare const isNonNullObject: (u: unknown) => u is object;
//# sourceMappingURL=is-non-null-object.d.mts.map