Получить количество аргументов, переданных функции

var count = function () {
    console.log(arguments.length);
};
count(); // 0
count(first, second); // 2

Проверить - все ли аргументы переданы функции

function test (foo, bar, qux) {
    return arguments.callee.length === arguments.length;
}

test(1); // false
test(1,2,3); // true

Итерация по всем аргументам в функции

function foo(){
  for(var i in arguments)
    console.log(arguments[i])
}
foo('one', 'two', 'three');
one
two
three
-----------