mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Update object checks.
This commit is contained in:
@@ -16,7 +16,7 @@ import getTag from './.internal/getTag.js'
|
||||
* // => false
|
||||
*/
|
||||
function isWeakSet(value) {
|
||||
return typeof value == 'object' && value != null && getTag(value) == '[object WeakSet]'
|
||||
return typeof value == 'object' && value !== null && getTag(value) == '[object WeakSet]'
|
||||
}
|
||||
|
||||
export default isWeakSet
|
||||
|
||||
Reference in New Issue
Block a user