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

69
Vistas
The find function is not available on my array object

Consider this simple attempt to find a value in an object:

var config = {
        product1: {
            ids: ['master']
        },
        product2: {
            ids: ['ps1', 'ps2']
        }
    };

var id = 'ps2';
var slotID = 'master';
var categorySlotIds = config[slotID].ids;

categorySlotIds.find(id);

I get: TypeError: Cannot find function find in object product1, product2

If I do typeof(categorySlotIDs) the result is object.

The manual for find says: The find() method returns the first element in the provided array

What gives?

almost 4 years ago · Santiago Trujillo
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