noushmac/ngx-magic-table

View on GitHub
projects/ngx-magic-table/src/lib/models/string-filter.ts

Summary

Maintainability
A
45 mins
Test Coverage


export namespace StringFilter {

    export enum filters {
        equals = 'equals',
        notEquals = 'not equals',
        startsWith = 'starts with',
        notStartsWith = 'not starts with',
        endsWith = 'ends with',
        notEndsWith = 'not ends with',
        contains = 'contains',
        notContains = 'not contains'
    
    }
    export function values() {
      return Object.keys(filters).filter(
        (type) => isNaN(<any>type) && type !== 'values'
      );
    }
  }