Skip to content
This repository has been archived by the owner on Mar 11, 2018. It is now read-only.

Commit

Permalink
Use ! instead of === false
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanqing committed Dec 31, 2014
1 parent 4ee4dd5 commit 558ec4f
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 @@ -17,7 +17,7 @@ var taxonomist = function(arr, prop, fn) {
each(tags, function(tag) {
tag = fn(tag);
// create empty [] if `tag` is not a key in `result`
if (tag in result === false) {
if (!(tag in result)) {
result[tag] = [];
}
result[tag].push(val);
Expand Down

0 comments on commit 558ec4f

Please sign in to comment.