rokojori-godot/rokojori-cpp-generator/source/library/Objects.ts

8 lines
147 B
TypeScript
Raw Normal View History

2024-08-02 06:22:12 +00:00
export class Objects
{
static jsonClone<T>( obj:T ):T
{
let jsonData = JSON.stringify( obj );
return JSON.parse( jsonData ) as T;
}
}