I like similar example: ["192", "168", "0", "1"].map(parseInt) which yields [192, NaN, 0, 1]. Makes a great question in the interview.
Having also written a book about things to look for and abhor in an interview, I consider this question a strong red flag.