Skip to content
On this page

isBase64

Whether it is Base64 encoded.

Usage

ts
import { isBase64 } from '@use-kit/functions'

const img = 'dGVzdA=='
const ret = isBase64(img) // true
import { isBase64 } from '@use-kit/functions'

const img = 'dGVzdA=='
const ret = isBase64(img) // true

Released under the MIT License.