Skip to content

Instantly share code, notes, and snippets.

@dkln
Created May 11, 2010 13:13
Show Gist options
  • Save dkln/397279 to your computer and use it in GitHub Desktop.
Save dkln/397279 to your computer and use it in GitHub Desktop.
Merging two simple objects (like a hash
public class ObjectUtils {
public static function mergeObjects(resultObject:Object, toMergeObject:Object):Object {
var setting:String;
for(setting in toMergeObject)
resultObject[setting] = toMergeObject[setting];
return resultObject;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment