Merge pull request #5443 from chrootsu/lodash-isUndefined

lodash: changed _.isUndefined() method
This commit is contained in:
Masahiro Wakame
2015-08-21 23:35:26 +09:00
2 changed files with 23 additions and 12 deletions
+6 -2
View File
@@ -1196,6 +1196,12 @@ result = <boolean>_({}).isRegExp();
result = <boolean>_.isTypedArray([]);
result = <boolean>_([]).isTypedArray();
// _.isUndefined
result = <boolean>_.isUndefined(any);
result = <boolean>_(1).isUndefined();
result = <boolean>_<any>([]).isUndefined();
result = <boolean>_({}).isUndefined();
// _.lt
result = <boolean>_.lt(1, 2);
result = <boolean>_(1).lt(2);
@@ -1444,8 +1450,6 @@ result = <boolean>_.isPlainObject({ 'name': 'moe', 'age': 40 });
result = <boolean>_.isString('moe');
result = <boolean>_.isUndefined(void 0);
result = <string[]>_.keys({ 'one': 1, 'two': 2, 'three': 3 });
result = <string[]>_({ 'one': 1, 'two': 2, 'three': 3 }).keys().value();
+17 -10
View File
@@ -6229,6 +6229,23 @@ declare module _ {
isTypedArray(): boolean;
}
//_.isUndefined
interface LoDashStatic {
/**
* Checks if value is undefined.
* @param value The value to check.
* @return Returns true if value is undefined, else false.
**/
isUndefined(value: any): boolean;
}
interface LoDashWrapperBase<T, TWrapper> {
/**
* see _.isUndefined
*/
isUndefined(): boolean;
}
//_.lt
interface LoDashStatic {
/**
@@ -7075,16 +7092,6 @@ declare module _ {
isString(value?: any): boolean;
}
//_.isUndefined
interface LoDashStatic {
/**
* Checks if value is undefined.
* @param value The value to check.
* @return True if the value is undefined, else false.
**/
isUndefined(value?: any): boolean;
}
//_.keys
interface LoDashStatic {
/**