File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ var isArrayOrTypedArray = require ( '../../lib/array' ) . isArrayOrTypedArray ;
4
+ var isTypedArraySpec = require ( '../../lib/array' ) . isTypedArraySpec ;
5
+ var decodeTypedArraySpec = require ( '../../lib/array' ) . decodeTypedArraySpec ;
6
+
3
7
var filterOps = require ( '../../constants/filter_ops' ) ;
4
8
var isNumeric = require ( 'fast-isnumeric' ) ;
5
9
@@ -16,7 +20,8 @@ module.exports = {
16
20
// This does not in any way shape or form support calendars. It's adapted from
17
21
// transforms/filter.js.
18
22
function coerceValue ( operation , value ) {
19
- var hasArrayValue = Array . isArray ( value ) ;
23
+ if ( isTypedArraySpec ( value ) ) value = decodeTypedArraySpec ( value ) ;
24
+ var hasArrayValue = isArrayOrTypedArray ( value ) ;
20
25
21
26
var coercedValue ;
22
27
You can’t perform that action at this time.
0 commit comments