From e2d6c6b928bc40f831f88ea025b5a8fd84e15793 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 23 Jul 2021 04:34:46 -0600 Subject: [PATCH] chore: add code --- ajquery.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ajquery.js diff --git a/ajquery.js b/ajquery.js new file mode 100644 index 0000000..d388f7f --- /dev/null +++ b/ajquery.js @@ -0,0 +1,7 @@ +function $(sel, el) { + return (el || document).querySelector(sel); +} + +function $$(sel, el) { + return (el || document).querySelectorAll(sel); +}