diff --git a/std/haxe/DynamicAccess.hx b/std/haxe/DynamicAccess.hx index 64924d71e49..28673749ece 100644 --- a/std/haxe/DynamicAccess.hx +++ b/std/haxe/DynamicAccess.hx @@ -91,4 +91,9 @@ abstract DynamicAccess(Dynamic) from Dynamic to Dynamic { Returns an array of `keys` in a structure. **/ public inline function keys():Array return Reflect.fields(this); + + /** + Returns a shallow copy of the structure + **/ + public inline function copy():DynamicAccess return Reflect.copy(this); }