Merge pull request #4069 from jon49/patch-1

add isError property
This commit is contained in:
Masahiro Wakame
2015-04-12 10:39:37 +09:00
+12
View File
@@ -5745,6 +5745,18 @@ declare module _ {
**/
isEmpty(value: any): boolean;
}
//_.isError
interface LoDashStatic {
/**
* Checks if value is an Error, EvalError, RangeError, ReferenceError, SyntaxError, TypeError,
* or URIError object.
* @param value The value to check.
* @return True if value is an error object, else false.
*/
isError(value: any): boolean;
}
//_.isEqual
interface LoDashStatic {