Update object checks.

This commit is contained in:
John-David Dalton
2017-04-23 22:15:51 -07:00
parent a6019d5316
commit f03b3edca4
11 changed files with 14 additions and 14 deletions

View File

@@ -24,6 +24,6 @@ const nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray
*/
const isTypedArray = nodeIsTypedArray
? (value) => nodeIsTypedArray(value)
: (value) => typeof value == 'object' && value != null && reTypedTag.test(getTag(value))
: (value) => typeof value == 'object' && value !== null && reTypedTag.test(getTag(value))
export default isTypedArray