1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Replace the isArray helper function with the native Array.isArray function

*Follow-up to PR 8813.*
This commit is contained in:
Jonas Jenwald 2017-09-01 20:27:13 +02:00
parent 22ade754cc
commit cfb4955a92
17 changed files with 77 additions and 87 deletions

View file

@ -14,8 +14,6 @@
*/
/* uses XRef */
import { isArray } from '../shared/util';
var EOF = {};
var Name = (function NameClosure() {
@ -117,7 +115,7 @@ var Dict = (function DictClosure() {
getArray: function Dict_getArray(key1, key2, key3) {
var value = this.get(key1, key2, key3);
var xref = this.xref, suppressEncryption = this.suppressEncryption;
if (!isArray(value) || !xref) {
if (!Array.isArray(value) || !xref) {
return value;
}
value = value.slice(); // Ensure that we don't modify the Dict data.