2021-03-28

assigning a variable to a very big array make it undefined

I used some endpoint to get simple info for all crypto coins , this list is very big

2 clear examples to illustrate the problem

// example one

var arrWithSmallLength = [  {
    name: 'Bitcoin',
    symbol: 'btc',
    id: 'bitcoin',
    image: 'bitcoin_logo_url'
  },.....];

// length of arrWithSmallLength is less than 1000

console.log(arrWithSmallLength); // it prints the array normally

// example two

var arrWithBigLength = [  {
    name: 'Bitcoin',
    symbol: 'btc',
    id: 'bitcoin',
    image: 'bitcoin_logo_url'
  },.....];

// length of arrWithBigLength is more than than 8000

console.log(arrWithBigLength); // it prints undefined

The arrWithBigLength rendered in VS Code in more than 78500 lines

UPDATE

find the data payload in this link : https://drive.google.com/file/d/1FIbMoLbtzRm7LqMaPZnE3EAL26sj4VOo/view



from Recent Questions - Stack Overflow https://ift.tt/3crg0aQ
https://ift.tt/eA8V8J

No comments:

Post a Comment