Skip to content

Instantly share code, notes, and snippets.

View jadjoubran's full-sized avatar
Building learnjavascript.online & react-tutorial.app

Jad Joubran jadjoubran

Building learnjavascript.online & react-tutorial.app
View GitHub Profile
@jadjoubran
jadjoubran / urlobject.js
Last active December 17, 2015 13:09 — forked from aymanfarhat/urlobject.js
Instead of returning #hash the function will now return 'hash' I don't think that there is any case where the # in the urlObject.hash will be useful
function urlObject(options)
{
default_options = {'url':window.location.href,'unescape':true,'convert_num':true};
if(typeof options !== "object")
options = default_options;
else
{
for(var index in default_options)
{