react check if object is b64 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:"))