Skip to content

Commit 29f6789

Browse files
committed
use Lib.isArrayOrTypedArray instead of Array.isArray
1 parent b9fc12f commit 29f6789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/fx/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function getPointKey(astr) {
228228

229229
function getPointData(val, pointNumber) {
230230
if (Array.isArray(pointNumber)) {
231-
if (Array.isArray(val) && Array.isArray(val[pointNumber[0]])) {
231+
if (Lib.isArrayOrTypedArray(val) && Lib.isArrayOrTypedArray(val[pointNumber[0]])) {
232232
return val[pointNumber[0]][pointNumber[1]];
233233
}
234234
} else {

0 commit comments

Comments
 (0)