diff --git a/lib/ber/writer.js b/lib/ber/writer.js index 3515acf..ca6400e 100644 --- a/lib/ber/writer.js +++ b/lib/ber/writer.js @@ -161,7 +161,7 @@ Writer.prototype.writeBuffer = function (buf, tag) { Writer.prototype.writeStringArray = function (strings) { - if ((!strings instanceof Array)) + if (!Array.isArray(strings)) throw new TypeError('argument must be an Array[String]'); var self = this;