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

84
Vistas
Not able to use Array.from

I am using a platform that only supports ECMAScript 5, and therefore my JavaScript code must work within that limit. Randomize is just a helper function I’ve written. This code snippet works perfectly in an environment that supports never versions than ecmascript 5, but it does not work in an ecmascript 5 environment. The function Array.find does not exist in ecmascript 5. How can I make it work in Ecmascript5?

Thanks in advance!

This is the code:

Array.from(crypto.getRandomValues(new Uint32Array(16))).map(randomize).join(‘’) 
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Since u can not use the function,i think u can rewrite a period of code of function that can help u reach the same condition. here are my private method from other developers:

function arrayFrom (){
         let args = Array.prototype.slice.call(arguments);
         return args
};

arrayFrom(1,2,3)// printf: [1,2,3]
about 4 years ago · Juan Pablo Isaza Denunciar
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