import * as deepmerge from 'deepmerge' ; let expDm = deepmerge [ 'default' ] ; export { expDm as deepmerge } ; param urlToCheck export function isUrl ( urlToCheck ) { if ( urlToCheck . indexOf ( 'http' ) === 0 || urlToCheck . indexOf ( '/' ) === 0 || urlToCheck . indexOf ( './' ) === 0 || urlToCheck . indexOf ( '../' ) === 0 ) { return true ; } return false ; } param s export function kebabToCamel ( s ) { return s . replace ( /(\-\w)/g , function ( m ) { return m [ 1 ] . toUpperCase ( ) ; } ) ; } param str export function camelToKebab ( str ) { return ! str ? null : str . replace ( /([A-Z])/g , function ( g ) { return '-' + g [ 0 ] . toLowerCase ( ) ; } ) ; } param object param config export function extendClassWithConfig ( object , config ) { if ( ! config || typeof config !== 'object' ) { return ; } Object . keys ( config ) . forEach ( function ( key ) { if ( key in object && typeof object [ key ] !== 'function' ) { if ( ( typeof object [ key ] === 'object' ) && ( object [ key ] !== null || typeof config [ key ] === "object" ) ) { extendClassWithConfig ( object [ key ] , config [ key ] ) ; } else { if ( config [ key ] !== undefined ) { object [ key ] = config [ key ] ; } } } } ) ; }