check if string is base64 javascript code example
Example: typescript check if string is base64 or not path to src
//Check if the string start with 'data:' and it should be a base64 string
string.startsWith("data:"))
//Check if the string start with 'data:' and it should be a base64 string
string.startsWith("data:"))