fix _.isDigit() return undefined