source: trip-planner-front/node_modules/tar/lib/normalize-unicode.js@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 405 bytes
Line 
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.
5const normalizeCache = Object.create(null)
6const {hasOwnProperty} = Object.prototype
7module.exports = s => {
8 if (!hasOwnProperty.call(normalizeCache, s))
9 normalizeCache[s] = s.normalize('NFKD')
10 return normalizeCache[s]
11}
Note: See TracBrowser for help on using the repository browser.