vue-uiv
Version:
Bootstrap 3 components implemented by Vue 2.
24 lines (18 loc) • 477 B
JavaScript
export function isExist (obj) {
return typeof obj !== 'undefined' && obj !== null
}
export function isFunction (obj) {
return typeof obj === 'function'
}
export function isNumber (obj) {
return typeof obj === 'number'
}
export function isString (obj) {
return typeof obj === 'string'
}
export function isBoolean (obj) {
return typeof obj === 'boolean'
}
export function isPromiseSupported () {
return typeof window !== 'undefined' && isExist(window.Promise)
}