import { VNodeThunk , ScopedSlot } from './declarations' ; export function isThunk ( val ) { return val . _thunk ; } export function isScopedSlot ( val ) { return val . length === 1 && typeof val [ 0 ] === 'function' && ! isThunk ( val [ 0 ] ) ; } export function isSelector ( val ) { return typeof val === 'string' && ( val [ 0 ] === '.' || val [ 0 ] === '#' ) ; } export function isObject ( val ) { return val !== 'null' && typeof val === 'object' && ! Array . isArray ( val ) ; } export function kebabToCamel ( str ) { return str . replace ( /-(.)/g , ( match , c ) => c . toUpperCase ( ) ) ; }