Function.prototype.curry = function(t) { var self = this; return function() { return self.apply(this, [t].concat(arguments)); } } ã®ãããªé¢æ°ãã«ãªã¼åå¼æ°ãé¨åé©ç¨ãããã¡ã½ãããä½ã£ã¦ã¿ããä¸æãåä½ããªããarguments 㯠Array ãªãã¸ã§ã¯ãã§ã¯ãªãã®ã§ã[t].concat(arguments)ã¯ãã©ãããªé åã¨ãã¦å±éãããªãã®ã ã£ãã function hoge() { window.alert(arguments); // object Arguments window.alert(arguments instanceof Array); // false } hoge(); JavaScript ã«ã¯ãarguments 以å¤ã«ããD
{{#tags}}- {{label}}
{{/tags}}