1 parent 2645ffd commit 958a9e9Copy full SHA for 958a9e9
1 file changed
codes/javascript/ts/show.ts
@@ -0,0 +1,4 @@
1
+const show = (...el: HTMLElement[]) => [...el].forEach(item => (item.style.display = ''));
2
+
3
+show(...document.querySelectorAll('img'));
4
+// Shows all <img> elements on the page
0 commit comments