In the following, is values
a normal object in file-2.js
?
// file-1.js
export {
FOO,
BAR
} from '~/my-values';
// file-2.js
import * as values from '~/file-1';
// what is `values` here? an object instance?
I ask because I want to use something like values.hasOwnProperty('FOO')
and rollup raised the following error:
'hasOwnProperty' is not exported by 'file-1.js'
Side question: is there a convenient way to test code using the import and export keywords? To the best of my knowledge Chrome dev tools to not support them in snippets.