The
ObjectUtil utility class is an all-static class with methods for working with object.
public static function clone(o:Object):Object
Returns the shallow copy of the object.
Parameters
Returns
| Object — the shallow copy of the object.
|
public static function copy(o:*):*
Returns the deep copy of the object.
Parameters
Returns
| * — the deep copy of the object.
|
public static function copyPrimitive(o:Object):Object
Copy the primitive object passed-in argument.
Parameters
Returns
public static function isEmpty(o:Object):Boolean
Returns true if the passed object is empty of enumerable property.
Parameters
Returns
| Boolean — true if the passed object is empty of enumerable property.
|
public static function isSimple(value:Object):Boolean
Returns true if the specified object is a simple object.
Parameters
Returns
| Boolean — true if the specified object is a simple object.
|
public static function memberwiseClone(o:*):Object
Creates a shallow copy of the current Object.
Parameters
Returns
public static function toBoolean(o:*):Boolean
Converts an object to an equivalent Boolean value.
Parameters
Returns
public static function toNumber(o:*):Number
Converts an object to an equivalent Number value.
Parameters
Returns
public static function toObject(o:*):Object
Converts an object to an equivalent Object value.
Parameters
Returns
public static function toSource(... arguments):String
Returns the string representation of the source of the specified object.
Parameters
Returns
| String — the string representation of the source of the specified object.
|