Permalink
Browse files

All supported targets support Array.isArray, so use that as it's more…

… robust (fixes issue #5)
  • Loading branch information...
1 parent e213d58 commit e7842dedfb17730b1fcbadf2efb7a93e98ab7394 @russellmcc committed Jul 31, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/osc-utilities.coffee
  2. +1 −1 package.json
View
@@ -547,7 +547,7 @@ exports.messageTransform = (transform) -> (buffer) ->
#
# is it an array?
#
-IsArray = (arr) -> (((typeof arr) is "object") and (arr instanceof Array))
+IsArray = Array.isArray
#
# An error that only throws when we're in strict mode.
View
@@ -1,6 +1,6 @@
{
"name": "osc-min",
- "version": "0.0.9",
+ "version": "0.0.10",
"main": "lib/index",
"author": {
"name": "Russell McClellan",

0 comments on commit e7842de

Please sign in to comment.