Skip to content

Instantly share code, notes, and snippets.

@geomago
Last active June 19, 2020 05:29
Show Gist options
  • Save geomago/a998e789cbf8ed66c33435b583bd6f68 to your computer and use it in GitHub Desktop.
Save geomago/a998e789cbf8ed66c33435b583bd6f68 to your computer and use it in GitHub Desktop.
cars_array
let cars = [
{id: 1, make: 'Ferrari', model: '812GTS', price: 336000, colour: 'rosso corsa'},
{id: 2, make: 'Ferrari', model: 'F8 Spider', price: 262000, colour: 'giallo modena'},
{id: 3, make: 'Lamborghini', model: 'Aventador S', price: 329400, colour: 'blu le mans'},
{id: 4, make: 'Bugatti', model: 'Chiron Pur Sport', price: 3000000, colour: 'blue'},
{id: 5, make: 'McLaren', model: 'New GT', price: 203000, colour: 'helios orange'},
{id: 6, make: 'Ferrari', model: 'F8 Spider', price: 262000, colour: 'giallo modena'},
{id: 7, make: 'Ferrari', model: 'F8 Spider', price: 262000, colour: 'red'},
{id: 8, make: 'Bugatti', model: 'Chiron Pur Sport', price: 3000000, colour: 'red'},
{id: 1, make: 'Ferrari', model: '812GTS', price: 336000, colour: 'rosso corsa'} /* duplicate */
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment