question: public static Object [ ] padArguments ( Object [ ] args , int count ) { if ( count < args . length ) return args ; int i ; Object [ ] result = new Object [ count ] ; for ( i = 0 ; i < args . length ; i ++ ) { result [ i ] = args [ i ] ; } for ( ; i < count ; i ++ ) { result [ i ] = Undefined . instance ; } return result ; }
target:  Helper function for builtin objects that use the varargs form. ECMA function formal arguments are undefined if not supplied; this function pads the argument array out to the expected length, if necessary.