Returns only present own numeric index keys for an array-like value.
Unlike arrKeys, this skips holes / missing indexes. For example, an array with indexes 0, 1, 2, 10 returns [0, 1, 2, 10].
0
1
2
10
[0, 1, 2, 10]
The array-like value to enumerate.
An array containing only present own numeric index keys.
0.14.0
arrIndexKeys(["a", "b", "c"]);// [0, 1, 2]const sparse: any[] = [];sparse[0] = "a";sparse[10] = "z";arrIndexKeys(sparse);// [0, 10] Copy
arrIndexKeys(["a", "b", "c"]);// [0, 1, 2]const sparse: any[] = [];sparse[0] = "a";sparse[10] = "z";arrIndexKeys(sparse);// [0, 10]
Returns only present own numeric index keys for an array-like value.
Unlike arrKeys, this skips holes / missing indexes. For example, an array with indexes
0,1,2,10returns[0, 1, 2, 10].