We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hasOwn
hasOwnProperty
getColor
1 parent bcbb17c commit 5307b45Copy full SHA for 5307b45
packages/theming/src/utils/getColor.ts
@@ -181,8 +181,7 @@ const toColor = (
181
colors[hue as keyof typeof colors] /* ex. `hue` = 'primaryHue' */ ||
182
hue; /* ex. `hue` = '#fd5a1e' */
183
184
- // eslint-disable-next-line n/no-unsupported-features/es-builtins
185
- if (Object.hasOwn(palette, _hue)) {
+ if (Object.prototype.hasOwnProperty.call(palette, _hue)) {
186
_hue = palette[_hue]; /* ex. `hue` = 'grey' */
187
}
188
0 commit comments