Skip to content

Instantly share code, notes, and snippets.

View kuldeepkeshwar's full-sized avatar
👨‍💻
Code

Kuldeep Keshwar kuldeepkeshwar

👨‍💻
Code
View GitHub Profile
@kuldeepkeshwar
kuldeepkeshwar / ditchysort.js
Created March 26, 2016 21:54
Sort function doesn't work properly for array size >10 in chrome
function Person(name,city){
this.name=name;
}
var sorted=[];
var sortDitchedMe=[];
for(var i=1;i<=11;i++){
var person=new Person('name'+i);
if(i<11){
sorted.push(person);
}