ES5ããFunction.prototype.bindãå ¥ãã¾ãã. ããã«æºãããã®ã¯æ°ã ã®Frameworkã§æä¾ããç¶ãã¦ããã®ã§, ãã¾ã馴æã¿ã®ç¡ãã¯ãªãã®ã§ã¯ãªãã§ãããã. ãã®Function.ptototype.bindã¯å®ã¯ã¨ã¦ãé¢ç½ãã®ã§. çµè«ããè¨ãã°, Function.prototype.bindã¯target functionã®Constructã«å®å ¨ã«ç§»è²ããã®ã§Constructorã®å¼æ°æç¸ãè¡ãã¾ã. ã¾ãConstructor callã«å¯¾ãã¦é åã渡ãapplyå½¢å¼ã®ãã®ã¨ãã£ãapplyConstructorãcallConstructorãbindã使ã£ã¦å®è£ ãããã¨ãã§ãã¾ã. åºæ¬ Function.prototype.bindã¯åºæ¬çã«ã¯thisã¨argumentsã«ç¹å®ã®å¤ãæç¸ããé¢æ°ã§ã. bindã¯ç¬¬ä¸å¼æ°ã«this, 次ãã
{{#tags}}- {{label}}
{{/tags}}