added _.isObject definition

This commit is contained in:
Brian Zengel
2013-10-20 16:53:11 -04:00
parent a42f8cb453
commit ae7289c674
2 changed files with 12 additions and 14 deletions
+4
View File
@@ -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' },
+8 -14
View File
@@ -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.