How to polyfill with native code in IE11?

Viewed 193

As we all know that IE does not support Array.prototype.includes method, so it should log 'undefined' with Array.protopetype.includes.

However, open I open an app in IE which was built with vue-cli, and I tried to log ' Array.prototype.includes' in console, it unexpectedly log the 'native code', which means that the includes methods now was nativly supported!

Out of my perception,it should log something like function(){....}

but how could it log 'native code'?I've googled that, but found nothing relative.Online link was showned here: https://gaoshijun1993.github.io/,you can test it with IE

enter image description here

1 Answers
Related