Closed kravets-levko closed 5 months ago
Change condition in polyfill. hasOwnProperty still returns true if property is available but its value is undefined. Also, the condition contained typo. Instead, explicitly check if ArrayConstructor.prototype.at is a function.
hasOwnProperty
true
undefined
ArrayConstructor.prototype.at
Change condition in polyfill.
hasOwnProperty
still returnstrue
if property is available but its value isundefined
. Also, the condition contained typo. Instead, explicitly check ifArrayConstructor.prototype.at
is a function.