You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a little investigation it appears this may be a bug with JSLint itself misinterpreting the colon in the object literal. Can't get a straight answer from google though.
Actually, after looking through the JSLint source, it would appear that its flagging the "weird ternary" error because the two alternate objects you return as so similar:
I have the following lines at the end of a javascript function. When I ran JSLint on it I get a 'weird ternary' warning on the last line.
If I'm doing something wrong I'd like to know but the warning message isn't particularly helpful.
The text was updated successfully, but these errors were encountered: