mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 15:47:57 +02:00
Enable the unicorn/prefer-at
ESLint plugin rule (PR 15008 follow-up)
Please find additional information here: - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at - https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-at.md
This commit is contained in:
parent
5d88233fbb
commit
9ac4536693
32 changed files with 56 additions and 46 deletions
|
@ -284,10 +284,7 @@ function getXfaFontDict(name) {
|
|||
dict.set("CIDToGIDMap", Name.get("Identity"));
|
||||
dict.set("W", widths);
|
||||
dict.set("FirstChar", widths[0]);
|
||||
dict.set(
|
||||
"LastChar",
|
||||
widths[widths.length - 2] + widths[widths.length - 1].length - 1
|
||||
);
|
||||
dict.set("LastChar", widths.at(-2) + widths.at(-1).length - 1);
|
||||
const descriptor = new Dict(null);
|
||||
dict.set("FontDescriptor", descriptor);
|
||||
const systemInfo = new Dict(null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue