UNPKG

@better-scroll/shared-utils

Version:
10 lines (8 loc) 214 B
export function warn(msg: string) { console.error(`[BScroll warn]: ${msg}`) } export function assert(condition: string | boolean, msg: string) { if (!condition) { throw new Error('[BScroll] ' + msg) } }