* Adds all the language items in the given object to the store.
*/
export function addObject(object: LanguageItems): void {
- Object.keys(object).forEach((key) => {
- add(key, object[key]);
+ Object.entries(object).forEach(([key, value]) => {
+ add(key, value);
});
}
* Adds all the language items in the given object to the store.
*/
function addObject(object) {
- Object.keys(object).forEach((key) => {
- add(key, object[key]);
+ Object.entries(object).forEach(([key, value]) => {
+ add(key, value);
});
}
exports.addObject = addObject;