Skip to content

Instantly share code, notes, and snippets.

View Indefy's full-sized avatar

Adi Booker Indefy

View GitHub Profile
@Indefy
Indefy / Selenium_WebDriver_JavaScript_Guide.md
Last active July 31, 2024 20:55
Comprehensive Guide to Selenium WebDriver JavaScript API
//react page size tracker
export const useWindowResize = () => {
const [width, setWidth] = useState(window.innerWidth);
const [height, setHeight] = useState(window.innerHeight);
const listener = () => {
setWidth(window.innerWidth);
setHeight(window.innerHeight);
};
@Indefy
Indefy / Destructuring assignment - Adi Booker -By Yariv Gilad
Last active February 12, 2024 17:26
Destructuring assignment - Adi Booker -By Yariv Gilad
Destructuring assignment in ES6 - Adi Booker
--------------------------------------------
With these concepts, you can efficiently extract values from objects, handle nested data structures, and provide fallback values when necessary, leading to cleaner and more readable code.
A [Pen](https://codepen.io/Indefy/pen/WNmYwzL) by [Adi Booker](https://codepen.io/Indefy) on [CodePen](https://codepen.io).
[License](https://codepen.io/license/pen/WNmYwzL).