Fix typo
This commit is contained in:
parent
e979c7e64d
commit
9f1b410416
|
@ -44,6 +44,10 @@ Possible error codes:
|
|||
|
||||
## Changelog
|
||||
|
||||
### 2.0.1 (July 14, 2024)
|
||||
|
||||
Fixed internal typo.
|
||||
|
||||
### 2.0.0 (July 14, 2024)
|
||||
|
||||
__BREAKING:__ Replace internal string checking implementation with a faster one; the new implementation will not recognize String objects from another realm (but will still work fine with regular, non-object strings).
|
||||
|
|
|
@ -14,5 +14,5 @@ module.exports = function isString(value) {
|
|||
if (typeof value !== 'object') {
|
||||
return false;
|
||||
}
|
||||
return hasToStringTag ? string instanceof String : toStr.call(value) === strClass;
|
||||
return hasToStringTag ? value instanceof String : toStr.call(value) === strClass;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue