mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
added _.isUndefined definition
This commit is contained in:
@@ -651,6 +651,8 @@ result = <boolean>_.isRegExp(/moe/);
|
||||
|
||||
result = <boolean>_.isString('moe');
|
||||
|
||||
result = <boolean>_.isUndefined(void 0);
|
||||
|
||||
var mergeNames = {
|
||||
'stooges': [
|
||||
{ 'name': 'moe' },
|
||||
|
||||
Vendored
+8
-6
@@ -2488,6 +2488,13 @@ declare module _ {
|
||||
**/
|
||||
export function isString(value: any): boolean;
|
||||
|
||||
/**
|
||||
* Checks if value is undefined.
|
||||
* @param value The value to check.
|
||||
* @return True if the value is undefined, else false.
|
||||
**/
|
||||
export function isUndefined(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
|
||||
@@ -2703,12 +2710,7 @@ declare module _ {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if value is undefined.
|
||||
* @param object Check if this object is undefined.
|
||||
* @return True if `object` is undefined, otherwise false.
|
||||
**/
|
||||
export function isUndefined(value: any): boolean;
|
||||
|
||||
|
||||
/* *********
|
||||
* Utility *
|
||||
|
||||
Reference in New Issue
Block a user