Edit It: Copy an array's keys into a new array
This code shows how to use Object.keys() in JavaScript to copy an array's keys into a new array.
See it on StackBlitzThis code shows how to use Object.keys() in JavaScript to copy an array's keys into a new array.
See it on StackBlitz