Is it possible to convert an object to an array if it has this structure, while all fields are ignored which have an non-number field?
var obj = {
0: 'some',
1: 'thing',
2: 'to convert',
ignore: 'this'
}
result should be:
result = ['some', 'thing', 'to convert'];
with the correct order of the elements.