ee
Size: a a a
ee
M
const { * } = require("./file")
?ee
ee
ee
M
ee
M
// path-to-file.js
const zalupa = () => console.log('Zalupa')
module.exports = zalupa
// other-file-for-import.js
const zalupa = require('./path-to-file')
zalupa()ee
ee
// 1.js
const a = 1, b = 2, c = 3;
module.exports = {a,b,c}
//2.js
здесь мне нужно импортировать сразу все значения (a,b,c)ee
const {a,b,c} = require("./1.js")ee
ee
И
M
const {a,b,c} = require("./1.js")const Alphabet = require('path-to-file')
Alphabet.a
Alphabet.b
Alphabet.cee
☔
ee