I have two files in a tree that defines an object.
The common.js file.
export default {
table: {
actions: {
save: 'Save',
delete: 'Delete',
update: 'Update'
}
}
};
In another file, I am calling the common.js file I just stated.
var common = require('common.js');
And whenever I access the object, as said, I get this;
console.log(common);
{
common:{
default: {
table: {
actions: {
save: 'Save',
delete: 'Delete',
update: 'Update'
}
}
}
}
}
What I'm looking forward to get is the following;
{
common: {
table: {
actions: {
save: 'Save',
delete: 'Delete',
update: 'Update'
}
}
}
}
That is without the default key. Is there a way I can export the table object and get it without the default key?