mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Update object checks.
This commit is contained in:
2
isSet.js
2
isSet.js
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user