React Hookers - v6.3.0
    Preparing search index...

    Function useCollator

    • Provides localized Intl.Collator for the current locale.

      Parameters

      • options: CollatorOptions = emptyObject

        Format options. Create options outside of rendering to enable format caching.

      Returns Collator

      const collator = useCollator({ caseFirst: 'upper' });

      collator.compare('Hello', 'goodbye');
      // ⮕ 1