Friday, February 12, 2016

Function

The "length" property of a function indicates the function's arity (the number of parameters it expects)

function reflect(value){
       return value;
}

console.log(reflect.length) //1

No comments:

Post a Comment