user1324887
user1324887

Reputation: 662

How to clone an object in Parse.com

I have few Questions. All related to cloning an object in Parse.com.

  1. Is there a way to use jQuery in parse.com? because then I can use the extend method. I tried to use $.extend({}, object1, object2) but parse.com doesn't seem to recognize $ or jquery.
  2. I have a request object which I need to clone and another UserInfoList object which I need to clone ?

One way is that I clone them manually and insert each field in the new object. Is there a better way to do it ?

Upvotes: 1

Views: 1605

Answers (1)

Felix Dumit
Felix Dumit

Reputation: 468

From the Parse.Object Documentation you can object2 = object1.clone()

Upvotes: 2

Related Questions