089b4bdbde787594023dadbff50322510cd9e1c97ead12a87e897ca2a6c8dfd1a373b697a2a53ed7746697baeda08e9dca99a72f38fc96e9c826074b597676 489 B

12345678910111213
  1. // warning: extremely hot code path.
  2. // This has been meticulously optimized for use
  3. // within npm install on large package trees.
  4. // Do not edit without careful benchmarking.
  5. const normalizeCache = Object.create(null);
  6. const { hasOwnProperty } = Object.prototype;
  7. export const normalizeUnicode = (s) => {
  8. if (!hasOwnProperty.call(normalizeCache, s)) {
  9. normalizeCache[s] = s.normalize('NFD');
  10. }
  11. return normalizeCache[s];
  12. };
  13. //# sourceMappingURL=normalize-unicode.js.map