View as Markdown

API reference

@salmonui/core/data

42 exported symbols: 7 functions, 22 interfaces and 13 types. Each name links its page with the signature, docs and members.

import { … } from '@salmonui/core/data';

Functions

  • compilePatternCompiles like (% / = any sequence) or wildcard ( = any sequence, ? = one character) into an anchored RegExp.
  • freezeJsonCopyDeep copy of a JSON value with every object and array frozen. Drops undefined properties.
  • isJsonValueTrue when value survives a JSON round trip unchanged: null, booleans, finite numbers, strings, arrays, and plain objects of those. undefined is allowed only as…
  • normalizeFilterOperatorCanonical built-in operator for a name (case-insensitive).
  • shallowEqualShallow equality for selector results: Object.is, or same keys/items with Object.is values.
  • shallowEqualArrays
  • stableStringifyDeterministic JSON: object keys sorted, undefined and functions dropped, array order preserved. Used for query cache keys and serialization.

Interfaces

Types