Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
theuser47814y@uyouthe Looks like he's indenting logs with two spaces and the rest 4 (except the return statement). I actually like that system.
-
theuser47814y@GiddyNaya A linter would probably help you my good sir.
Do you manually indent, or are you using something that lets you conditinally indent 2 or 4 spaces? -
@theuser My indentations are 4 spaces but for the above block the console.log lines where copy-pasted from another block before i started editing its message, i guess the copied line was 2 indent spaces.
-
And my real problem lyes at line 89. (returning nothing when an object is expected)
Thanks to @theuser -
if an if statement has only one statement, I like putting it in front, that looks sane and much more readable.
My code won't sing back (-‸ლ)
rant
debugging js script