mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
added _.isObject definition
This commit is contained in:
@@ -634,6 +634,10 @@ result = <boolean>_.isNull(undefined);
|
||||
|
||||
result = <boolean>_.isNumber(8.4 * 5);
|
||||
|
||||
result = <boolean>_.isObject({});
|
||||
result = <boolean>_.isObject([1, 2, 3]);
|
||||
result = <boolean>_.isObject(1);
|
||||
|
||||
var mergeNames = {
|
||||
'stooges': [
|
||||
{ 'name': 'moe' },
|
||||
|
||||
Vendored
+8
-14
@@ -2459,6 +2459,14 @@ declare module _ {
|
||||
**/
|
||||
export function isNumber(value: any): boolean;
|
||||
|
||||
/**
|
||||
* Checks if value is the language type of Object. (e.g. arrays, functions, objects, regexes,
|
||||
* new Number(0), and new String(''))
|
||||
* @param value The value to check.
|
||||
* @return True if the value is an object, else false.
|
||||
**/
|
||||
export function isObject(value: any): boolean;
|
||||
|
||||
/**
|
||||
* Recursively merges own enumerable properties of the source object(s), that don't resolve
|
||||
* to undefined into the destination object. Subsequent sources will overwrite property
|
||||
@@ -2672,20 +2680,6 @@ declare module _ {
|
||||
**/
|
||||
export function tap<T>(object: T, intercepter: Function): T;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if value is an Object. Note that JavaScript arrays and functions are objects,
|
||||
* while (normal) strings and numbers are not.
|
||||
* @param object Check if this object is an Object.
|
||||
* @return True of `object` is an Object, otherwise false.
|
||||
**/
|
||||
export function isObject(object: any): boolean;
|
||||
|
||||
/**
|
||||
* Returns true if object is a String.
|
||||
* @param object Check if this object is a String.
|
||||
|
||||
Reference in New Issue
Block a user