src/third_party/specimenTools/lib/widgets/FeatureDisplay.js
/**
     * Decorator to inverse a filter function.
     *
     * ```
     * inputItems = ['a', 'b', 'c', 'd', 'e', 'f']
     * s = new Set(['a', 'b', 'c'])
     * inputItems.filter(s.has, s)
     * > [ 'a', 'b', 'c' ]
     * inputItems.filter(inverseFilter(s.has, s))
     * > [ 'd', 'e', 'f' ]
     * // also:
     * inputItems.filter(inverseFilter(s.has), s)
     * ```
     */
Decorator to inverse a filter function.
Decorator to inverse a filter function .
function inverseFilter(filterFunc) {
        var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
        return function(element, index, array) {
            return !filterFunc.call(thisArg !== void 0 ? thisArg : this
                                                , element, index, array);
        };
    }
function inverseFilter ( filterFunc ) { var thisArg = arguments . length >= 2 ? arguments [ 1 ] : void 0 ; return function ( element , index , array ) { return ! filterFunc . call ( thisArg !== void 0 ? thisArg : this , element , index , array ) ; } ; }
Decorator to inverse a filter function.
Decorator to inverse a filter function .
/*, thisArg*/