Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

411
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!