Wednesday, December 26, 2012

Simple way to remove methods associated with object

Here, I am going to extract object’s attributes(attributes only not method) from another object. In some case, I need attributes from object instead their methods. Though there is a way of use “for” loop, I used JSON. Also this will help us to clone object attributes.

Output In Firebug:


Note: Please write your queries and suggestion as comment.

No comments:

Post a Comment