From db94653dccb5036f75813568fabde91d69deb3b2 Mon Sep 17 00:00:00 2001 From: Louis-Dominique Dubeau Date: Fri, 21 Jun 2019 19:49:20 -0400 Subject: [PATCH] perf: include is faster than individual tests --- src/xml/1.0/ed5.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xml/1.0/ed5.ts b/src/xml/1.0/ed5.ts index 4a94a60..fb1b23f 100644 --- a/src/xml/1.0/ed5.ts +++ b/src/xml/1.0/ed5.ts @@ -73,7 +73,7 @@ export function isChar(c: number): boolean { * @returns ``true`` if the codepoint matches ``S``. */ export function isS(c: number): boolean { - return c === SPACE || c === NL || c === CR || c === TAB; + return S_LIST.includes(c); } /**