Skip to content
Prev Previous commit
Next Next commit
Update doc/api/util.md
Co-authored-by: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
brodo and lpinca authored Mar 1, 2023
commit 46a1a982180570b81da24a70fc18f8aadfad1df6
2 changes: 1 addition & 1 deletion doc/api/util.md
Original file line number Diff line number Diff line change
Expand Up @@ -2545,7 +2545,7 @@ console.log(util.types.isNativeError(myError)); // true
console.log(myError instanceof Error); // false
```

Conversely, `isNativeError()` returns `false` for all objects which where not
Conversely, `isNativeError()` returns `false` for all objects which were not
returned by the constructor of a native error. That includes values
which are `instanceof` native errors:

Expand Down