Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6541993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:10:21+00:00 2026-05-25T11:10:21+00:00

I have a very very large array of 44,000+ objects in a javascript file.

  • 0

I have a very very large array of 44,000+ objects in a javascript file.

My problem is editing the file is absolutely terrible (especially if I must move each object 1 value in the array).

I’ve tried a csv file, but I am unable to have the text be my objects. I’ve considered XML and JSON but I don’t see it fixing my editing problems.

I’m hoping for a javascript editor that handles 2d arrays like a table, or essentially anything that will create the array of objects and allow me to edit similarly to a table.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:10:21+00:00Added an answer on May 25, 2026 at 11:10 am

    OK, first of all: what the what? 44,000 objects hardcoded in your source file? Why do you even have 44,000 objects anyway, and can’t you generate them somehow?

    Anyway…

    Assuming I understand your requirement correctly, my suggestion to solve your editing problem but still produce a standard JS script file is to use an Excel spreadsheet to do your editing, saving your source data in standard Excel format, and write an Excel macro (VBA) to produce the desired JS file output at the press of a button, a bit like pressing the compile button in an IDE. Seriously. It sounds like you want a nice visual editor that can move things around within your array, shift cells up on delete, all the kind of things that Excel is good at. The VBA macro you’d need to take the data from the spreadsheet and output it as a JS file with a valid JavaScript array declaration would be trivial, no more than 20 or 30 lines of code, basically a simple nested for loop ought to do it with some initialisation to open a file for writing, etc.

    Bearing in mind JavaScript doesn’t have multidimensional arrays I’m assuming you want an array of arrays where each child array is the same length and contains objects, and that your desired output JS file is something like this (except much bigger):

    var myObjectArray = [
      [ {id:1}, {id:2}, {id:3}, {id:4}  ],
      [ {id:5}, {id:6}, {id:7}, {id:8}  ],
      [ {id:9}, {id:10},{id:11},{id:12} ],
      [ {id:13},{id:14},{id:15},{id:16} ]
    ];
    

    It’s easy to produce something like that from Excel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very large array which must be 262144 elements in length (and
I have a very large array I need to check for debugging purposes, problem
Hey. I have a very large array and I want to find the Nth
I have a very large file that looks like this (see below). I have
I have a very large numpy array (containing up to a million elements) like
I have a very large array of doubles that I am using a disk-based
I have an algorithm which currently allocates a very large array of doubles, which
I have a C# method that returns very large number of objects. This is
I have a very large NumPy array 1 40 3 4 50 4 5
I've got a very large array of objects obtained by a normal Get-ChildItem, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.