Skip to content

husterL9/algorithms

Repository files navigation

algorithms

🍵

中级

1.Diff Two Arrays

Q:下面的是怎么排出来的

var a = [1, "sdf", "adc", 3, "sss", 5, "bijd", 1, 1000, 2, 3];

a.sort((a, b) => a - b);
console.log(a);
// [1, 'sdf', 'adc', 3, 'sss', 3, 5, 'bijd', 1, 2, 1000]

2.Wherefore-art-thou

Q.Object.hasOwnProperty 和 Object.prototype.hasOwnProperty 的区别

力扣

001 二分查找

Releases

No releases published

Packages

No packages published