We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array.prototype.includes property is enumerable. IE11 Console: Object.getOwnPropertyDescriptor(Array.prototype, 'includes') ---> reveals:
enumerable: true, configurable: true, writable: true
Should be: {writable: true, enumerable: false, configurable: true}
Please correct the following polyfill
From: Array.prototype.includes = function includes(searchElement /, fromIndex/ ) To: Array.prototype.includes = Object.defineProperty( Array.prototype, 'includes', { configurable: true, writable: true, value: function includes(searchElement /, fromIndex/ ) {...} }) ( enumerable: false, is the default value )
Example in properties.keys
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Array.prototype.includes property is enumerable. IE11 Console: Object.getOwnPropertyDescriptor(Array.prototype, 'includes') ---> reveals:
enumerable: true,
configurable: true,
writable: true
Should be: {writable: true, enumerable: false, configurable: true}
Please correct the following polyfill
From:
Array.prototype.includes = function includes(searchElement /, fromIndex/ )
To:
Array.prototype.includes = Object.defineProperty( Array.prototype, 'includes', {
configurable: true,
writable: true,
value: function includes(searchElement /, fromIndex/ ) {...}
})
( enumerable: false, is the default value )
Example in properties.keys
The text was updated successfully, but these errors were encountered: