Simplify vanilla function
Abstract deep functionality
Use abstracted deep functionality
Unify comments
Add Object to String result shortcuts
Add missing variable definitions
Add isRegExp function
Unify all return statements
Change argument elem to value
Move tests to root directory
Fix broken tests and use basic regexp testing
Add ability to test via functions