FunctionUtil

Kind of class:class
Inherits from:none
Version:02/11/07
Author:Aaron Clinger
Classpath:org.casaframework.util.FunctionUtil
File last modified:Wednesday, 07 March 2007, 14:18:49

Summary

Class methods

Class methods

hasMinArguments

static function hasMinArguments (
args:Object, min:Number) : Boolean
Determines if object has minimum number of arguments.
Parameters:
arguments:
The argument object.
min :
The amount of arguments.
Returns:
Returns true if the objects length is equal to, or greater than the minimum amount of arguments; otherwise false.
Usage:
function myMethod(firstValue:String, secondValue:Number, optionalValue:Number):Void {
    if (!FunctionUtil.hasMinArguments(arguments, 2))
        return;

    trace("Has minimum arguments.");
}