Skip to content

Commit 9cb8f87

Browse files
author
Justin Van Dort
authored
Check for typed array in minExtend
Modified minExtend to check for both arrays and TypedArrays
1 parent 25fe1c9 commit 9cb8f87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ lib.minExtend = function(obj1, obj2) {
660660
v = obj1[k];
661661
if(k.charAt(0) === '_' || typeof v === 'function') continue;
662662
else if(k === 'module') objOut[k] = v;
663-
else if(Array.isArray(v)) {
663+
else if(lib.isArrayOrTypedArray(v)) {
664664
if(k === 'colorscale') {
665665
objOut[k] = v.slice();
666666
} else {

0 commit comments

Comments
 (0)