This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var $ = function (selector) { | |
var splitSelector = selector.split(/(?=\.)|(?=#)/); | |
/* elemAttributes object provided for: | |
1) DOM NodeName - only grabbing the first matched | |
2) List of classes | |
3) List of ID's - only grabbing the first matched | |
pushes result in corresponding array in elemAttr object | |
elName & classList use an array to capture all values provided |