File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 82
82
*/
83
83
function filterFilter ( ) {
84
84
return function ( array , expression ) {
85
- if ( ! ( array instanceof Array ) ) return array ;
85
+ if ( ! isArray ( array ) ) return array ;
86
86
var predicates = [ ] ;
87
87
predicates . check = function ( value ) {
88
88
for ( var j = 0 ; j < predicates . length ; j ++ ) {
Original file line number Diff line number Diff line change 89
89
orderByFilter . $inject = [ '$parse' ] ;
90
90
function orderByFilter ( $parse ) {
91
91
return function ( array , sortPredicate , reverseOrder ) {
92
- if ( ! ( array instanceof Array ) ) return array ;
92
+ if ( ! isArray ( array ) ) return array ;
93
93
if ( ! sortPredicate ) return array ;
94
94
sortPredicate = isArray ( sortPredicate ) ? sortPredicate : [ sortPredicate ] ;
95
95
sortPredicate = map ( sortPredicate , function ( predicate ) {
You can’t perform that action at this time.
0 commit comments