Skip to content
This repository was archived by the owner on Apr 16, 2019. It is now read-only.

Commit f864eea

Browse files
committed
Array.isArray()
1 parent 72c9090 commit f864eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ AMD or ES module.
7777
**/
7878
function detect(file) {
7979
var mod = extract(file);
80-
if (mod instanceof Array) {
80+
if (Array.isArray(mod)) {
8181
mod = mod.shift(); // picking up the first module from the list
8282
}
8383
return mod && mod.type;

0 commit comments

Comments
 (0)