I was wondering if it's possible to somehow make array/object's children to be exportable into another .js
files
Let's say, I have a file a.js
with this code:
const vector = ['a', 'b', 'c'];
export default vector;
Array's elements may be functions, collections, whatever...
Is there a way I could do the following in my file b.js
?
import {c} from './a.js';
// do something with c