import { a } from "x"; import b from "y"; const arr = [a, 'foo', b(), 'bar']; console.log(arr);