Skip to content

Commit

Permalink
Fix lint error: no-prototype-builtins
Browse files Browse the repository at this point in the history
  • Loading branch information
segayuu committed Aug 7, 2019
1 parent a7b24b9 commit 6d9df36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class Color {
_parse(color) {
color = color.toLowerCase();

if (colorNames.hasOwnProperty(color)) {
if (Object.prototype.hasOwnProperty.call(colorNames, color)) {
const obj = colorNames[color];

this.r = obj.r;
Expand Down

0 comments on commit 6d9df36

Please sign in to comment.