Skip to content

Commit

Permalink
Better check.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanth committed Dec 8, 2014
1 parent eab0a96 commit 58b50dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ var map = (function(){
].forEach(function(attr){
map.prototype[attr] = isFunction(Map.prototype[attr]);
});
map.prototype['size'] = !~~Object.getOwnPropertyDescriptor(Map.prototype,'size')
map.prototype['size'] = !!Object.getOwnPropertyDescriptor(Map.prototype,'size')
return map;
} else {
return false;
Expand Down

0 comments on commit 58b50dc

Please sign in to comment.