mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-13 12:37:16 +08:00
parse: Add fromJSON
This commit is contained in:
@@ -56,6 +56,8 @@ function test_object() {
|
||||
gameScore.addUnique("skills", "kungfu");
|
||||
|
||||
game.set("gameScore", gameScore);
|
||||
|
||||
var gameCopy = Game.fromJSON(JSON.parse(JSON.stringify(game)), true);
|
||||
}
|
||||
|
||||
function test_query() {
|
||||
|
||||
Reference in New Issue
Block a user