tiny-types
Version:
A tiny library that brings Tiny Types to JavaScript and TypeScript
17 lines (16 loc) • 460 B
TypeScript
import { Predicate } from './Predicate';
/**
* @desc
* Ensures that the `value` is a plain {@link Object}.
* Based on Jon Schlinkert's implementation.
*
* @see https://github.com/jonschlinkert/is-plain-object
*
* @example
* import { ensure, isPlainObject } from 'tiny-types';
*
* ensure('plain object', {}, isPlainObject());
*
* @returns {Predicate<string>}
*/
export declare function isPlainObject<T extends object = object>(): Predicate<T>;