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

@@ -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