I was looking for a way to add new elements to an an existing object like what push does with arrays
I have tried this and it didn\'t work :
var myF
jQuery syntax mentioned above by Danilo Valente is not working. It should be as following-
$.extend(myFunction,{ bookName:'mybook', bookdesc: 'new' });