Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
IE8 do not support Array.isArray
  • Loading branch information
javve committed Jan 15, 2014
1 parent eedff56 commit 4903caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -12,7 +12,7 @@ module.exports = function toArray(collection) {
if (collection === null) return [null]
if (collection === window) return [window]
if (typeof collection === 'string') return [collection]
if (Array.isArray(collection)) return collection.slice()
if (collection instanceof Array) return collection
if (typeof collection.length != 'number') return [collection]
if (typeof collection === 'function') return [collection]

Expand Down

0 comments on commit 4903caa

Please sign in to comment.