mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
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:
parent
82f1ee1755
commit
3704283f5b
4 changed files with 6 additions and 30 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue