https://leetcode.com/problems/smallest-index-with-equal-value/



Runtime: 126 ms, faster than 9.09% of TypeScript online submissions for Smallest Index With Equal Value.

Memory Usage: 47.2 MB, less than 9.09% of TypeScript online submissions for Smallest Index With Equal Value.



```typescript
function smallestEqual(nums: number[]): number {
    //9:33
    let smallest = nums.length;
    for (const [index, value] of nums.entries()) {
        if ((index % 10) === value) {
            if (index < smallest) {
                smallest = index
            }
        }
    }
    if (smallest === nums.length) {
        return -1;
    }
    return smallest;
    //9:34
};
```
