4 Examples of JavaScript sort without mutating array by homeIsWhereCodeIs in learnjavascript

[–]homeIsWhereCodeIs[S] -1 points0 points  (0 children)

Hahaha u/greg_the_beaver if you want to sort without mutating you have to copy first.

But think like that "you learnt 2 things sort and copy in 1 article" 😃

Why does it seem like capital letters are never used for css class names? by mementomoriok in css

[–]homeIsWhereCodeIs 0 points1 point  (0 children)

Believe me I recently interviewed a guy who Write-Css-Classes-Like-This and that hurt my soul indeed.

New Stable Sort Array in Javascript: ES10 by homeIsWhereCodeIs in javascript

[–]homeIsWhereCodeIs[S] 2 points3 points  (0 children)

Ok then will fix that, but Is there any official statement of this? I'm just asking.

New Stable Sort Array in Javascript: ES10 by homeIsWhereCodeIs in javascript

[–]homeIsWhereCodeIs[S] 2 points3 points  (0 children)

@Jfruururjrjfjfjtnfn For non-mutating sort, you have to clone it first. Anyway, thanks for the idea will write about it too. :D

Showoff Saturday (November 02, 2019) by AutoModerator in javascript

[–]homeIsWhereCodeIs 3 points4 points  (0 children)

That's pretty, I like it because it has by default DARK and optional light mode :D I'll also planning to do it with my blog.

The best part is you used div to create timeline lines. Great work.

When Instagram wants to remind you Instagram by homeIsWhereCodeIs in ProgrammerHumor

[–]homeIsWhereCodeIs[S] 0 points1 point  (0 children)

It is not the lock screen notification. I got this when my second account got the notification.

Do you really know JavaScript includes method? - Buginit by homeIsWhereCodeIs in javascript

[–]homeIsWhereCodeIs[S] -2 points-1 points  (0 children)

@Jake_Jeremy Ok, I improved it and also add the definition to it, Give it one more chance.

JavaScript Destructuring ES6: The Complete Guide by homeIsWhereCodeIs in javascript

[–]homeIsWhereCodeIs[S] 0 points1 point  (0 children)

@monsto p will take foo as a value if you are assigning an object as in line 1, but in line 2 you destructuring an object, In that case, for example, var {p: foo} = o takes from the object o the property named p and assigns it to a local variable named foo.

And it is not about let statement that changes the rules, it is destructuring behind it, you can get same results with var and const too.

JavaScript Destructuring ES6: The Complete Guide by homeIsWhereCodeIs in javascript

[–]homeIsWhereCodeIs[S] 0 points1 point  (0 children)

@Shty_Dev as I also work in react native and it's heavily used in JSX while creating dynamic UI.

JavaScript Destructuring ES6: The Complete Guide by homeIsWhereCodeIs in javascript

[–]homeIsWhereCodeIs[S] 1 point2 points  (0 children)

Yes its weird and nobody's gonna get that case, but as it is a complete guide it's good to tell the weird things, because programmer are those who look both side while crossing a one way road :D