UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

14 lines (10 loc) 263 B
/*! * @techmely/utils * Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com> * MIT Licensed */ // src/isBase64.ts function isBase64(base) { return /^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$/.test(base); } export { isBase64 };