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 106
106
*/
107
107
function filterFilter ( ) {
108
108
return function ( array , expression , comperator ) {
109
- if ( ! ( array instanceof Array ) ) return array ;
109
+ if ( ! isArray ( array ) ) return array ;
110
110
var predicates = [ ] ;
111
111
predicates . check = function ( value ) {
112
112
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