Here is my code snippet :
json.iddd = ~~(json.id);
console.log(typeof(json.iddd)); //shows number
new ResponseTabView(json.iddd); // backbone view
inside the view i am calling:
this.grid = new Backgrid.Grid({body : this.body, collection :this.collection, columns: this.columns});
I get the following error :
Uncaught TypeError: Object 5229d8fff4ae7a3803000023 has no method 'toFixed'
How to get rid of it?