Skip to content

Commit d103541

Browse files
committed
issue: opmtize
1 parent b46f9d6 commit d103541

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/next-cast-array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
var nx = global.nx || require('next-js-core2');
55

66
nx.castArray = function (inTarget) {
7-
return Array.isArray( inTarget ) ? inTarget : [ inTarget ];
7+
return (inTarget instanceof Array) ? inTarget : [ inTarget ];
88
};
99

1010

dist/next-cast-array.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/next-cast-array.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
var nx = global.nx || require('next-js-core2');
55

66
nx.castArray = function (inTarget) {
7-
return Array.isArray( inTarget ) ? inTarget : [ inTarget ];
7+
return (inTarget instanceof Array) ? inTarget : [ inTarget ];
88
};
99

1010

0 commit comments

Comments
 (0)