added _.isElement definition

This commit is contained in:
Brian Zengel
2013-10-20 16:07:13 -04:00
parent 99ab1939cf
commit 0bcaa7d138
2 changed files with 9 additions and 9 deletions
+1 -3
View File
@@ -595,7 +595,7 @@ result = <boolean>_.isBoolean(null);
result = <boolean>_.isDate(new Date());
result = <boolean>_.isElement(document.body);
var mergeNames = {
@@ -675,8 +675,6 @@ _.isEqual(moe, clone);
_.isEmpty([1, 2, 3]);
_.isEmpty({});
_.isElement($('body')[0]);
_.isObject({});
_.isObject(1);
+8 -6
View File
@@ -2374,6 +2374,13 @@ declare module _ {
**/
export function isDate(value: any): boolean;
/**
* Checks if value is a DOM element.
* @param value The value to check.
* @return True if the value is a DOM element, else false.
**/
export function isElement(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
@@ -2603,12 +2610,7 @@ declare module _ {
**/
export function isEmpty(object: any): boolean;
/**
* Returns true if object is a DOM element.
* @param object Check if this object is a DOM element.
* @return True if `object` is a DOM element, otherwise false.
**/
export function isElement(object: any): boolean;
/**
* Returns true if value is an Object. Note that JavaScript arrays and functions are objects,