æè¿ã¯ããæ¸ãã¦ããã /* copyrightãlicenseæ å ±ã¯å¿ è¦ã ã£ããæåã«è¤æ°è¡ã³ã¡ã³ãã§æ¸ã */ // ã°ãã¼ãã«å¤æ°ãåãã«varã§å®£è¨ãã var global = window; // é¢æ°ã使ç¨ããåã«é¢æ°æ¬ä½ãæ¸ã function times(func, n, self) { // var宣è¨ã¯æåã«æ¸ãã var i; if (!self) self = global; // å¼ãä¸ã¤ã®å ´åãä¸è¡ã§æ¸ã for (i = 0; i < n; ++i) { // å¿ è¦ããªãå ´åãi++ã§ã¯ãªã++iã¨ãã try { func.call(self, i); } catch (error) { if (error instanceof global.StopIteration) { break; } else { // elseãå¿ è¦ãªå ´åããã¬ã¼ã¹ã¯å¿ ãä»ãã
{{#tags}}- {{label}}
{{/tags}}