Lies the `===` operator tell. JS👽
Consider:
You could use
✨How to avoid deez pitfalls:
1. Use
2. Use
Object.is(..) in action:
Think of
#JS
=== ( “strict equality” ) operator has some nuances. The === operator is designed to lie in two cases of special values: NaN and -0.Consider:
NaN === NaN; //false
0 === -0 //true
You could use
0 === -0 intentionally in your program for whatever reason. ( I know you lot are weird )✨How to avoid deez pitfalls:
1. Use
Number.isNaN(..) for NaN checks.2. Use
Object.is(..) for -0 comparisons (and for NaN too).Object.is(..) in action:
console.log(Object.is('1', 1));
// Expected output: false
console.log(Object.is(NaN, NaN));
// Expected output: true
console.log(Object.is(-0, 0));
// Expected output: false
const obj = {};
console.log(Object.is(obj, {}));
// Expected output: false
Think of
Object.is(..) as the “quadruple-equals” ====, the really-really-strict comparison!😉#JS
Skywalker Leul
https://youtube.com/shorts/lz1O-rUes-s?si=RFJ6gsm8_JL_jemZ
The man was already retired gymnast in 2004. Damn. Their levels to this shit. 🐐🐐🐐
Ai in the browser is crazy. Use window.ai and bam u got ai in ur web app
https://youtu.be/V4-4Ylipjoo?si=j0zbshfVu8zFBYWE
https://youtu.be/V4-4Ylipjoo?si=j0zbshfVu8zFBYWE
YouTube
I can't believe this is real
window.ai is the new API coming to Chrome for embedded Gemini Nano. I am impressed. There's a lot of potential here, but also a lot of silliness.
SOURCES
https://x.com/rauchg/status/1806385778064564622?s=46&t=UvyVXF6GNB9_Oufc5Z3HQg
https://ai-sdk-chrome…
SOURCES
https://x.com/rauchg/status/1806385778064564622?s=46&t=UvyVXF6GNB9_Oufc5Z3HQg
https://ai-sdk-chrome…
Cross Code
Converting this channel to my onlyfans page lmao💀
finally I can sell them feet picks 🗿