Skip to content

Instantly share code, notes, and snippets.

@arboleya
arboleya / ns.js
Last active December 10, 2015 17:08 — forked from giuliandrimba/namespace.js
Simple namespace definer.
/*
USAGE:
# at window
ns( 'my.namespace' ).MyClass = ...
# at app obj
var app = {}
ns( 'my.namespace', app ).MyClass = ...
*/