lodash.iserror
Advanced tools
Comparing version 3.0.3 to 3.1.0
10
index.js
/** | ||
* lodash 3.0.3 (Custom Build) <https://lodash.com/> | ||
* lodash 3.1.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -40,4 +40,8 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
function isError(value) { | ||
return isObjectLike(value) && | ||
typeof value.message == 'string' && objectToString.call(value) == errorTag; | ||
if (!isObjectLike(value)) { | ||
return false; | ||
} | ||
var Ctor = value.constructor; | ||
return (objectToString.call(value) == errorTag) || | ||
(typeof Ctor == 'function' && objectToString.call(Ctor.prototype) == errorTag); | ||
} | ||
@@ -44,0 +48,0 @@ |
{ | ||
"name": "lodash.iserror", | ||
"version": "3.0.3", | ||
"version": "3.1.0", | ||
"description": "The lodash method `_.isError` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.iserror v3.0.3 | ||
# lodash.iserror v3.1.0 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.isError` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#isError) or [package source](https://github.com/lodash/lodash/blob/3.0.3-npm-packages/lodash.iserror) for more details. | ||
See the [documentation](https://lodash.com/docs#isError) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.iserror) for more details. |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4438
69