Skip to content

Commit

Permalink
Add copy() to DynamicAccess (#5863)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinresol authored and Simn committed Aug 2, 2017
1 parent 0565983 commit 2d9a21c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions std/haxe/DynamicAccess.hx
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,9 @@ abstract DynamicAccess<T>(Dynamic<T>) from Dynamic<T> to Dynamic<T> {
Returns an array of `keys` in a structure.
**/
public inline function keys():Array<String> return Reflect.fields(this);

/**
Returns a shallow copy of the structure
**/
public inline function copy():DynamicAccess<T> return Reflect.copy(this);
}

0 comments on commit 2d9a21c

Please sign in to comment.