From a643e57ef17db707deb71748b730c69528026c5a Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 27 Jun 2015 02:11:59 -0600 Subject: [PATCH] fix binaryStringToBuffer === to !== --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d1275e6..089aefb 100644 --- a/index.js +++ b/index.js @@ -63,7 +63,7 @@ function bufferToBase64(arr) { function binaryStringToBuffer(binstr) { var buf; - if ('undefined' === typeof Uint8Array) { + if ('undefined' !== typeof Uint8Array) { buf = new Uint8Array(binstr.length); } else { buf = [];