Answers for "javascript if the string is base64"

0

js check if string is base64

function isBase64(str) {
    if (str ==='' || str.trim() ===''){ return false; }
    try {
        return btoa(atob(str)) == str;
    } catch (err) {
        return false;
    }
}
Posted by: Guest on September-01-2021
2

javascript encode base64

const e
Posted by: Guest on March-04-2020

Code answers related to "javascript if the string is base64"

Code answers related to "Javascript"

Browse Popular Code Answers by Language