UNPKG

ember-attacher

Version:
24 lines (19 loc) 446 B
import Ember from 'ember'; const { Logger } = Ember; export function assert(msg, conditional) { if (!conditional) { throw new Error(msg); } } export function debug() { Logger.debug(...arguments); } export function debugOnError(msg, conditional) { if (!conditional) { console.error(msg); // eslint-disable-line no-console debugger; // eslint-disable-line no-debugger } } export function stripInProduction(cb) { cb(); }