src/client/client.js
function fitsInPatternTypes(path, pattern) {
            var i;

            if (pattern.items && pattern.items.length > 0) {
                for (i = 0; i < pattern.items.length; i += 1) {
                    if (self.isTypeOf(path, pattern.items[i])) {
                        return true;
                    }
                }
                return false;
            } else {
                return true;
            }
        }
function fitsInPatternTypes(path, pattern) {
            var i;

            if (pattern.items && pattern.items.length > 0) {
                for (i = 0; i < pattern.items.length; i += 1) {
                    if (self.isTypeOf(path, pattern.items[i])) {
                        return true;
                    }
                }
                return false;
            } else {
                return true;
            }
        }
function fitsInPatternTypes ( path , pattern ) { var i ; if ( pattern . items && pattern . items . length > 0 ) { for ( i = 0 ; i < pattern . items . length ; i += 1 ) { if ( self . isTypeOf ( path , pattern . items [ i ] ) ) { return true ; } } return false ; } else { return true ; } }
this is just a first brute implementation it needs serious optimization!!!
this is just a first brute implementation it needs serious optimization!!!