Skip to content

Instantly share code, notes, and snippets.

@kawsaramin101
kawsaramin101 / jkq.js
Last active May 3, 2022 01:05 — forked from jakerella/jkq.js
An ultra-light, jQuery-like micro-library for selecting DOM elements and manipulating them.
(function() {
'use strict';
/**
* Core method, similar to jQuery (only simpler)
*
* @param {String|HTMLElement} s The CSS selector to search for or HTML element to wrap with functionality
* @param {HTMLElement} root OPTIONAL An HTML element to start the element query from
* @return {Array} The collection of elements, wrapped with functionality (see API methods)
*/