setTimeout() vs ããã«ã¼ãä»ç¾©ãªãæ¦ãã«ãã㨠function isNativeFunction(func, name) { for (var o in func) { if (o === "toString") return false; } var match = func.toString().match(/^function (\S+)\(\)\s*{\s*\[native code\]\s*}$/); return (match && match[1] === name); } setInterval = function(){}; isNativeFunction(setInterval, 'setInterval'); // false ã§setIntervalãå½è£ ããã¦ããã調ã¹ãããã¨æ¸ãã¦ãããããããªãã¨ã¯ãªãã èªåãæ®æ®µä½¿ã£ã¦ãããã©ã¦ã¶ã¯Sa
{{#tags}}- {{label}}
{{/tags}}