param val returns export const capitalizeFirstLetter = ( val ) : string => val [ 0 ] . toUpperCase ( ) + val . slice ( 1 ) ; export const isEmpty = ( obj ) : boolean => obj && Object . keys ( obj ) . length === 0 && obj . constructor === Object ;