https://netsuiteprofessionals.com logo
j

jkabot

03/06/2018, 4:46 PM
my best guess without a hint on what part doesn't work would be you are mixing strings and numbers.
indexOf() compares searchElement to elements of the Array using strict equality (the same method used by the === or triple-equals operator).
https://mdn.io/array/indexof