Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_createLocaleStore(valueTextMap) {
valueTextMap[TextStyle.FULL_STANDALONE] = valueTextMap[TextStyle.FULL];
valueTextMap[TextStyle.SHORT_STANDALONE] = valueTextMap[TextStyle.SHORT];
/* istanbul ignore if */ // this doesn't seem to happen?
if (Object.keys(valueTextMap).includes(TextStyle.NARROW) && !Object.keys(valueTextMap).includes(TextStyle.NARROW_STANDALONE)) {
valueTextMap[TextStyle.NARROW_STANDALONE] = valueTextMap[TextStyle.NARROW];
}
return new LocaleStore(valueTextMap);
}
}
_createLocaleStore(valueTextMap) {
valueTextMap[TextStyle.FULL_STANDALONE] = valueTextMap[TextStyle.FULL];
valueTextMap[TextStyle.SHORT_STANDALONE] = valueTextMap[TextStyle.SHORT];
/* istanbul ignore if */ // this doesn't seem to happen?
if (Object.keys(valueTextMap).includes(TextStyle.NARROW) && !Object.keys(valueTextMap).includes(TextStyle.NARROW_STANDALONE)) {
valueTextMap[TextStyle.NARROW_STANDALONE] = valueTextMap[TextStyle.NARROW];
}
return new LocaleStore(valueTextMap);
}
}