UNPKG

@techmely/utils

Version:

Collection of helpful JavaScript / TypeScript utils

16 lines (11 loc) 286 B
'use strict'; /*! * @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); } exports.isBase64 = isBase64;