wishthis/node_modules/irregular-plurals/index.js
2022-01-21 09:28:41 +01:00

15 lines
362 B
JavaScript

'use strict';
const irregularPlurals = require('./irregular-plurals.json');
const map = new Map();
// TODO: Use Object.entries when targeting Node.js 8
for (const key of Object.keys(irregularPlurals)) {
map.set(key, irregularPlurals[key]);
}
// Ensure nobody can modify each others Map
Object.defineProperty(module, 'exports', {
get() {
return map;
}
});