add isError property

https://lodash.com/docs#isError
This commit is contained in:
Jon Nyman
2015-04-08 10:55:15 -07:00
parent 8f16b0fd1a
commit 6baac1dca4
+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 {