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

@@ -21,6 +21,6 @@ const nodeIsSet = nodeUtil && nodeUtil.isSet
*/
const isSet = nodeIsSet
? (value) => nodeIsSet(value)
: (value) => typeof value == 'object' && value != null && getTag(value) == '[object Set]'
: (value) => typeof value == 'object' && value !== null && getTag(value) == '[object Set]'
export default isSet