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

415
Vistas
What is the Big-O of Fuse JavaScript search() function on an array, consisting of Order objects. See Order object below

I'm trying to figure out the Big-O analysis for using fuse.js which uses fuzzy search to find data. I plan on allowing searching for an order using; order_id, customerName, or orderDate.

export const orderData = [
    {
        order_id: '20180101203000',
        orderDate: '2018-01-01:20:30:00',
        orderStatus: 'Pending',
        customerId: 1,
        customerName: 'Mbami Luka',
        customerCity: 'New York',
        customerState: 'New York',
        customerCountry: 'USA',
        customerPhone: '+1-212-555-1212',
        org_id: 'DANDL3ION',
        org_name: 'Dandelion',
        orderTotal: '$1,000.00',
        orderItems: [
            {
                productId: 1,
                productName: 'Pasta',
                productSKU: 'SKU-001',
                productPrice: '$5.00',
                productQuantity: 1,
                productTotal: '$5.00',
                prodictImage: 'https://www.pexels.com/photo/food-plate-dinner-lunch-5807019/'
            },
            {
                productId: 2,
                productName: 'Kebab',
                productSKU: 'SKU-002',
                productPrice: '$10.00',
                productQuantity: 1,
                productTotal: '$10.00',
                prodictImage: 'https://www.pexels.com/photo/food-dinner-lunch-meal-5191852/'
            },
        ],
    },

    {
        order_id: '20180101203003',
        orderDate: '2018-01-01:20:30:03',
        orderStatus: 'Pending',
        customerId: 1,
        customerName: 'Bradley Isaacs',
        customerCity: 'New York',
        customerState: 'New York',
        customerCountry: 'USA',
        customerPhone: '+1-212-555-1212',
        org_id: 'MSUDENVER',
        org_name: 'Dandelion',
        orderTotal: '$1,000.00',
        orderItems: [
            {
                id: 3,
                productId: 3,
                productName: 'Pizza',
                productSKU: 'SKU-003',
                productPrice: '$15.00',
                productQuantity: 1,
                productTotal: '$5.00',
                prodictImage: 'https://www.pexels.com/photo/pizza-with-red-pepper-and-cheese-1049620/',
            },
            {
                id: 4,
                productId: 4,
                productName: 'Apple pie',
                productSKU: 'SKU-004',
                productPrice: '$10.00',
                productQuantity: 1,
                productTotal: '$10.00',
                prodictImage: 'https://www.pexels.com/photo/deliciously-baked-apple-pie-7790871/',
            },
        ],
    },
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