UNPKG

cldr

Version:

Library for extracting data from CLDR (the Unicode Common Locale Data Repository)

7 lines (6 loc) 188 B
/* * Convert foo-bar attribute values to fooBar JavaScript keys */ module.exports = function normalizeProperty(str) { return str.replace(/-([a-z])/g, ($0, ch) => ch.toUpperCase()); };