Merge pull request #6973 from chrootsu/lodash-isNull

lodash: signatures of _.isNull have been changed
This commit is contained in:
Masahiro Wakame
2015-12-01 23:14:30 +09:00
2 changed files with 28 additions and 5 deletions
+19 -4
View File
@@ -5159,10 +5159,25 @@ result = <boolean>_(Array.prototype.push).isNative();
}
// _.isNull
result = <boolean>_.isNull(any);
result = <boolean>_(1).isNull();
result = <boolean>_<any>([]).isNull();
result = <boolean>_({}).isNull();
module TestIsNull {
{
let result: boolean;
result = _.isNull(any);
result = _(1).isNull();
result = _<any>([]).isNull();
result = _({}).isNull();
}
{
let result: _.LoDashExplicitWrapper<boolean>;
result = _(1).chain().isNull();
result = _<any>([]).chain().isNull();
result = _({}).chain().isNull();
}
}
// _.isNumber
result = <boolean>_.isNumber(any);
+9 -1
View File
@@ -8995,9 +8995,10 @@ declare module _ {
interface LoDashStatic {
/**
* Checks if value is null.
*
* @param value The value to check.
* @return Returns true if value is null, else false.
**/
*/
isNull(value?: any): boolean;
}
@@ -9008,6 +9009,13 @@ declare module _ {
isNull(): boolean;
}
interface LoDashExplicitWrapperBase<T, TWrapper> {
/**
* see _.isNull
*/
isNull(): LoDashExplicitWrapper<boolean>;
}
//_.isNumber
interface LoDashStatic {
/**