Who will help to create a dc function that generates such an array? Thank you for your responses!
const array = [ [ 100 ], [ 500, 500 ], [ 1000, 1000 ],