biofriction-wp-theme/node_modules/irregular-plurals/index.js

16 lines
362 B
JavaScript
Raw Permalink Normal View History

2021-10-26 14:18:09 +02:00
'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;
}
});