Provides helper functions to create dynamic store driven filters and sort functions for dynamic reducers. The returned functions are also Svelte stores and can be added to a reducer as well as used as a store.

Constructors

Accessors

Constructors

Accessors

  • get filters(): {
        regexObjectQuery: ((accessors, options?) => ((data) => boolean) & Writable<string>);
    }
  • Returns the following filter functions:

    • regexObjectQuery(accessors, options); suitable for object reducers matching one or more property keys / accessors against the store value as a regex. To access deeper entries into the object format the accessor string with . between entries to walk. Optional parameters include logging access warnings, case sensitivity, and passing in an existing store.

    Returns {
        regexObjectQuery: ((accessors, options?) => ((data) => boolean) & Writable<string>);
    }

    All available filters.

    • regexObjectQuery: ((accessors, options?) => ((data) => boolean) & Writable<string>)
        • (accessors, options?): ((data) => boolean) & Writable<string>
        • Parameters

          • accessors: string | Iterable<string>
          • Optional options: {
                accessWarn?: boolean;
                caseSensitive?: boolean;
                store?: Writable<string>;
            }
            • Optional accessWarn?: boolean
            • Optional caseSensitive?: boolean
            • Optional store?: Writable<string>

          Returns ((data) => boolean) & Writable<string>