Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

76
Vistas
Test if object is es6 module

Using dynamics imports like that:

const i = import('./path/to/module.js');

yields a Promise for that module. Assuming that ./path/to/module.js looks like that:

export function foo () {}
export function bar () {}
export default function () {}

the resulting object will have such a shape:

{
  foo: …
  bar: …
  default: …
}

Right now I need to figure out if a given Object is such a module, or any other one. So: Is there any test to determine if a given object is such a es6 module, obtained by a dynamic import?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda