http://wiki.ecmascript.org/doku.php?id=conventions:safe_meta_programming ã«ã¦å¤§å¤æç¨ãªæ¸ãæ¹ã身ã«çããã Function.prototype.bindã¨Function.prototype.callã®é»éè¡çãªãã®ã obj.hasOwnProperty("prop"); ã¨æ¸ãã¨ãããcallã§æ¸ã㨠var func = Object.prototype.hasOwnProperty; func.call(obj, "prop"); ã¨æ¸ãããããã«callãbindãã¦ã¿ã㨠var func2 = func.call.bind(func); func2(obj, "prop"); ã¨ãªããããã«ãbindãbindãã㨠var func3 = func.bind.bind(func.call)(func
{{#tags}}- {{label}}
{{/tags}}