function filterArray ( instance , predicate ) { const arrInstance = ( instance . constructor === Array ) ? < Array < any > > instance : [ ... instance ] ; return arrInstance . filter ( predicate ) ; } export { filterArray as default , } ;