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

Ordering, equality, and hashing; type conversions; iterators; builders; maps; caches; and assertions

Apache-2.0
Latest version published 3 years ago

Package Health Score

58 / 100
Full package analysis

Similar packages