Skip to content

Commit

Permalink
Refactor: Use Object.prototype directly (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker authored and sindresorhus committed Jan 7, 2020
1 parent 06c90ec commit 13acf59
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 @@ -6,5 +6,5 @@ module.exports = value => {
}

const prototype = Object.getPrototypeOf(value);
return prototype === null || prototype === Object.getPrototypeOf({});
return prototype === null || prototype === Object.prototype;
};

0 comments on commit 13acf59

Please sign in to comment.