Use baseGetTag instead of getTag where possible (#4112)

This commit is contained in:
Luiz Américo
2018-12-10 21:27:28 -03:00
committed by John-David Dalton
parent 7f2ee90c9f
commit 4c55ea7068
5 changed files with 11 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
import getTag from './.internal/getTag.js'
import baseGetTag from './.internal/baseGetTag.js'
/**
* Checks if `value` is classified as a `String` primitive or object.
@@ -17,7 +17,7 @@ import getTag from './.internal/getTag.js'
*/
function isString(value) {
const type = typeof value
return type == 'string' || (type == 'object' && value != null && !Array.isArray(value) && getTag(value) == '[object String]')
return type == 'string' || (type == 'object' && value != null && !Array.isArray(value) && baseGetTag(value) == '[object String]')
}
export default isString