Skip to content

Commit 6d9df36

Browse files
committed
Fix lint error: no-prototype-builtins
1 parent a7b24b9 commit 6d9df36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/color.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class Color {
216216
_parse(color) {
217217
color = color.toLowerCase();
218218

219-
if (colorNames.hasOwnProperty(color)) {
219+
if (Object.prototype.hasOwnProperty.call(colorNames, color)) {
220220
const obj = colorNames[color];
221221

222222
this.r = obj.r;

0 commit comments

Comments
 (0)