How to use the @swim/util.Objects.compare function in @swim/util

To help you get started, we’ve selected a few @swim/util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github swimos / ripple / ui / main / MirrorView.ts View on Github external
chargeViews.sort(function (a: ChargeView, b: ChargeView): number {
        return Objects.compare(a.t0, b.t0);
      });
      const now = Date.now();

@swim/util

Interfaces for ordering, equality, hashing, type conversions, functional maps, interpolators, scales, iterators, builders, key-value maps, caches, and assertions

Apache-2.0
Latest version published 4 months ago

Package Health Score

71 / 100
Full package analysis