mirror of
https://github.com/flarum/core.git
synced 2025-08-24 09:03:05 +02:00
Bundled output for commit cab2e797eb
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
This commit is contained in:
24
js/dist-typings/common/utils/isObject.d.ts
vendored
Normal file
24
js/dist-typings/common/utils/isObject.d.ts
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* Returns if the passed value is an object.
|
||||
*
|
||||
* In this context, "object" refers to **any non-primitive value**, including
|
||||
* arrays, function, maps, dates, and more.
|
||||
*
|
||||
* @example
|
||||
* isObject({}); // true
|
||||
* @example
|
||||
* isObject([]); // true
|
||||
* @example
|
||||
* isObject(function () {}); // true
|
||||
* @example
|
||||
* isObject(Object(1)); // true
|
||||
* @example
|
||||
* isObject(null); // false
|
||||
* @example
|
||||
* isObject(1); // false
|
||||
* @example
|
||||
* isObject("hello world"); // false
|
||||
*
|
||||
* @see https://github.com/jashkenas/underscore/blob/943977e34e2279503528a71ddcc2dd5f96483945/underscore.js#L87-L91
|
||||
*/
|
||||
export default function isObject(obj: unknown): obj is object;
|
Reference in New Issue
Block a user