mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-12 11:57:49 +00:00
Use _.isError in _.attempt docs and _.template.
This commit is contained in:
@@ -8186,7 +8186,7 @@
|
||||
// provide the compiled function's source by its `toString` method or
|
||||
// the `source` property as a convenience for inlining compiled templates
|
||||
result.source = source;
|
||||
if (result instanceof Error) {
|
||||
if (isError(result)) {
|
||||
throw result;
|
||||
}
|
||||
return result;
|
||||
@@ -8402,7 +8402,7 @@
|
||||
* return document.querySelectorAll(selector);
|
||||
* });
|
||||
*
|
||||
* if (elements instanceof Error) {
|
||||
* if (_.isError(elements)) {
|
||||
* elements = [];
|
||||
* }
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user