This looks like destructuring:
const {getElementById, seedElements} = require(\'./utils\')
but I\'m confused about it. I\'m used to seeing something
You can think
const {getElementById, seedElements} = require('./utils')
as destructuring since when you export, you would write your export like
module.exports = { getElementById, seedElements };
or
export { getElementById, seedElements };
and while importing using require you would basically be importing the entire module and you can destructure the individual modules from it.
const {getElementById, seedElements} = require('./utils')
would be similar to
const Utils = require('./utils');
const { getElementById, seedElements } = Utils;
with the import syntax, you would however import the named exports like
import { getElementById, seedElements } from './utils';