We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32a8e8f commit f8d552eCopy full SHA for f8d552e
src/components/color/index.js
@@ -2,6 +2,7 @@
2
3
var tinycolor = require('tinycolor2');
4
var isNumeric = require('fast-isnumeric');
5
+var isTypedArray = require('../../lib/array').isTypedArray;
6
7
var color = module.exports = {};
8
@@ -116,7 +117,7 @@ color.clean = function(container) {
116
117
if(!Array.isArray(el0) && el0 && typeof el0 === 'object') {
118
for(j = 0; j < val.length; j++) color.clean(val[j]);
119
}
- } else if(val && typeof val === 'object' && !ArrayBuffer.isView(val)) color.clean(val);
120
+ } else if(val && typeof val === 'object' && !isTypedArray(val)) color.clean(val);
121
122
};
123
0 commit comments