Remove the isBool helper function

The call-sites are replaced by direct `typeof`-checks instead, which removes unnecessary function calls.
This commit is contained in:
Jonas Jenwald 2022-02-23 12:25:13 +01:00
parent 82f1ee1755
commit 3704283f5b
4 changed files with 6 additions and 30 deletions

View file

@ -1030,10 +1030,6 @@ function utf8StringToString(str) {
return unescape(encodeURIComponent(str));
}
function isBool(v) {
return typeof v === "boolean";
}
function isString(v) {
return typeof v === "string";
}
@ -1139,7 +1135,6 @@ export {
isArrayBuffer,
isArrayEqual,
isAscii,
isBool,
IsEvalSupportedCached,
IsLittleEndianCached,
isSameOrigin,