pdf.js/src/shared
Jonas Jenwald 05edd91bdb Remove the isNum helper function
The call-sites are replaced by direct `typeof`-checks instead, which removes unnecessary function calls. Note that in the `src/`-folder we already had more `typeof`-cases than `isNum`-calls.

These changes were *mostly* done using regular expression search-and-replace, with two exceptions:
 - In `Font._charToGlyph` we no longer unconditionally update the `width`, since that seems completely unnecessary.
 - In `PDFDocument.documentInfo`, when parsing custom entries, we now do the `typeof`-check once.
2022-02-22 11:55:34 +01:00
..
.eslintrc Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
cffStandardStrings.js Fix errors reported by the comma-spacing ESLint rule 2016-12-12 20:35:53 +01:00
compatibility.js [api-minor] Remove the, in legacy builds, bundled ReadableStream polyfill 2022-02-13 10:15:58 +01:00
fonts_utils.js Remove the isNum helper function 2022-02-22 11:55:34 +01:00
is_node.js Make the detection of Node.js environments on Electron strict. 2020-07-12 10:56:17 +09:00
message_handler.js [api-minor] Only use Workers when postMessage transfers are supported (PR 11123 follow-up) 2021-11-19 16:47:58 +01:00
scripting_utils.js [Regression] Prevent the *built* pdf.scripting.js/pdf.sandbox.js files from accidentally including most of the main-thread code (PR 12631 follow-up) 2020-12-04 14:17:26 +01:00
util.js Remove the isNum helper function 2022-02-22 11:55:34 +01:00