From 89597985ba9610c6960663f549e78d6a3c70868c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Mon, 4 Nov 2019 10:47:11 -0300 Subject: [PATCH] Binary as 'Uint32Array' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- lib/utils/fun.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/fun.js b/lib/utils/fun.js index 75e314d..884ed11 100644 --- a/lib/utils/fun.js +++ b/lib/utils/fun.js @@ -6,7 +6,7 @@ const isDefined = (v) => v && (typeof v) != "undefined"; const isBoolean = (v) => (typeof v) === "boolean"; const isInteger = (v) => Number.isInteger(v); const isDate = (v) => (v instanceof Date); -const isBinary = (v) => (v instanceof ArrayBuffer); +const isBinary = (v) => (v instanceof Uint32Array); const isStringOrThrow = (v, t) => (isString(v)