JS autocomplete shift() function with round brackets
Hi! I'm new to intelliJ and JS. Trying to learn how to use it more efficient. My question is about JS. Im trying to autocomplete shift() function but couldnt handle it.

Whenever i put the dot i see it at 8th place, and if i click it with mouse its completing as it is expected. but;

Whenever I put the 's' letter i don't see the shift() function btw suggestions anymore;

I tried WebStorm too, in it I never get the function as suggestion. Can i have some help to figure out how to autocomplete that function.
Please sign in to leave a comment.
for me, shitf() is not suggested at all, as the IDE has no idea what parameter type is expected... so just basic Object methods are suggested in completion:
please share a project the issue can be reproduced in
yes in webstorm different. put the first letters and you will get shift as suggestion but never as a function.
I'd suggest adding JSDoc annotation to let the IDE know what type is expected, like
thanks! that does the trick
found it.