mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Replace the isArray
helper function with the native Array.isArray
function
*Follow-up to PR 8813.*
This commit is contained in:
parent
22ade754cc
commit
cfb4955a92
17 changed files with 77 additions and 87 deletions
|
@ -1083,10 +1083,6 @@ function isString(v) {
|
|||
return typeof v === 'string';
|
||||
}
|
||||
|
||||
function isArray(v) {
|
||||
return v instanceof Array;
|
||||
}
|
||||
|
||||
function isArrayBuffer(v) {
|
||||
return typeof v === 'object' && v !== null && v.byteLength !== undefined;
|
||||
}
|
||||
|
@ -1695,7 +1691,6 @@ export {
|
|||
getLookupTableFactory,
|
||||
getVerbosityLevel,
|
||||
info,
|
||||
isArray,
|
||||
isArrayBuffer,
|
||||
isBool,
|
||||
isEmptyObj,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue