Entries from 2011-12-16 to 1 day

Functionの期待する引数の数をlengthプロパティで取れる

知らなかったのでメモ。 https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/length $ node > (function () {}) [Function] > (function () {}).length 0 > (function (a) {}).length 1 > (function (a, b) {}).length 2これを…