JSFiddle - React, Tailwind, and code Playground

JavaScript

var isNative;(function(){var b=Object.prototype.toString,d=Function.prototype.toString,e=/^\[object .+?Constructor\]$/,f=RegExp("^"+String(b).replace(/[.*+?^${}()|[\]\/\\]/g,"\\$&").replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");isNative=function(a){var c=typeof a;return"function"==c?f.test(d.call(a)):a&&"object"==c&&e.test(b.call(a))||!1}})();

//Example Usage
isNative(document.getElementById); //true

document.getElementById = function() { /* not native */ };

isNative(document.getElementById); //false