feature(navigation): initial nav implementation (WIP)

* wip

* wip

* updates
This commit is contained in:
Dan Bucholtz
2017-08-16 14:40:01 -05:00
committed by GitHub
parent 904a579adb
commit a941226d6f
20 changed files with 4912 additions and 3437 deletions

View File

@ -16,6 +16,12 @@ export function isFunction(v: any): v is (Function) { return typeof v === 'funct
export function isStringOrNumber(v: any): v is (string | number) { return isString(v) || isNumber(v); }
export function assert(bool: boolean, msg: string) {
if (!bool) {
console.error(msg);
}
};
export function toDashCase(str: string) {
return str.replace(/([A-Z])/g, (g) => '-' + g[0].toLowerCase());
}