export function cleanAlphaNumericString ( str ) { return ( str && typeof str === "string" ) ? str . replace ( /\W/g , '' ) : str ; } export function getISOFormattedDate ( date ? ) { if ( ! date || typeof date !== "object" ) { date = new Date ( ) ; } return date . toISOString ( ) . split ( '.' ) [ 0 ] + "Z" ; }