chore(common) lint

This commit is contained in:
coderaiser 2021-12-15 17:18:23 +02:00
parent 2654197681
commit 228744bec8

View file

@ -1,7 +1,5 @@
'use strict';
const isFn = (a) => typeof a === 'function';
module.exports.btoa = (str) => {
if (typeof btoa === 'function')
return btoa(str);
@ -12,7 +10,7 @@ module.exports.btoa = (str) => {
};
module.exports.atob = (str) => {
if (isFn(atob))
if (typeof atob === 'function')
return atob(str);
return Buffer