JavaScript Arrays Cheat Sheet

Static Properties Array.from(‘123’); // [‘1′,’2′,’3’] Array.isArray([1,2,3]); // true Array.of(1,2,3) // [1,2,3] Instance Properties Search or run test on array [1,2,2,3].indexOf(2); // 1 [1,2,2,3].lastIndexOf(2); // 2

Javascript Tips

Advance JavaScript Runtime Reference : Namaste 🙏 JavaScript Lydia Hallie Object Clone Secrets 1. Here “z” property will not display //Object clone secrets //copy/deep clone

Handling Time Zone in JavaScript

Convert date to another timezone in JavaScript https://stackoverflow.com/questions/10087819/convert-date-to-another-timezone-in-javascript Handling Time Zone in JavaScript https://medium.com/@toastui/handling-time-zone-in-javascript-547e67aa842d#:~:text=In%20this%20scenario%2C%20you%20can,current%20time%20zone%20in%20minutes.&text=The%20return%20value%20of%20%2D540,minutes%20ahead%20of%20the%20target. var aestTime = new Date().toLocaleString(“en-US”, {timeZone: “Australia/Brisbane”}); console.log(‘AEST time: ‘+ (new

Javascript Objects Prototype

javascript-prototype-and-prototype-chain-explained javascript-factory-functions-vs-constructor-functions prototype-in-javascript Prototype – GeeksforGeeks Object Definition – W3 Kirupa – Object Deeper Look How to loop through objects keys and values in Javascript?