export const first = < T > ( value ) : T | undefined => value [ 0 ] ; export const isNonEmpty = ( value ) : boolean => value !== "" ; export const isParam = ( value ) : boolean => value . startsWith ( ":" ) ; export const isMultipleParam = ( value ) : boolean => value . startsWith ( ":" ) && value . endsWith ( "[]" ) ;