[Home] >  DOM >  Show an element

Show an element

JavaScript version

const show = (ele) => (ele.style.display = '');

TypeScript version

const show = (ele: HTMLElement): string => (ele.style.display = '');