mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
added _.isElement definition
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Vendored
+8
-6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user