Simple for loop solution!
\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar smallestEqual = function(nums) {\n    let arr = [];\n    \n    for (let i = 0; i < nums.length; 
```\n/**\n * @param {number[]} nums\n * @return {number}\n */\nvar smallestEqual = function(nums) {\n    let arr = [];\n    \n    for (let i = 0; i < nums.length; i++){\n        if(i % 10 === nums[i]){\n            arr.push(i);\n        } \n    }\n    return arr.length === 0 ? -1 : Math.min(...arr);\n};\n```
['JavaScript']