@riophae/vue-treeselect
Version:
A multi-select component with nested options support for Vue.js
12 lines (10 loc) • 355 B
JavaScript
import { noop } from './noop'
export const warning = process.env.NODE_ENV === 'production'
? /* istanbul ignore next */ noop
: function warning(checker, complainer) {
if (!checker()) {
const message = [ '[Vue-Treeselect Warning]' ].concat(complainer())
// eslint-disable-next-line no-console
console.error(...message)
}
}