Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use Array.isArray() instead of typeof

  • Loading branch information...
commit b6267b647a8fb16edf338f008d26e7670b09d105 1 parent 0dcfc42
@pvorb authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  md5.js
View
2  md5.js
@@ -8,7 +8,7 @@
// Convert to byte array
if (message.constructor == String)
message = utf8.stringToBytes(message);
- else if (typeof message != 'object')
+ else if (!Array.isArray(message))
message = message.toString();
// else, assume byte array already
Please sign in to comment.
Something went wrong with that request. Please try again.