test/mjsunit/temporal/function-exist-no-intl.js
// Find out the minimum number of arguments of that function
Find out the minimum number of arguments of that function
Find out the minimum number of arguments of that function
function numberOfArgs(tokens) {
  let argc = 0;
  for (i = 2; i < tokens.length; i++) {
    if (tokens[i] == "["  || tokens[i] == ")") {
      return argc;
    }
    if (tokens[i] != ",") {
      argc++;
    }
  }
}
function numberOfArgs ( tokens ) { let argc = 0 ; for ( i = 2 ; i < tokens . length ; i ++ ) { if ( tokens [ i ] == "[" || tokens [ i ] == ")" ) { return argc ; } if ( tokens [ i ] != "," ) { argc ++ ; } } }
Find out the minimum number of arguments of that function
Find out the minimum number of arguments of that function