Here are 2 quick tips you can use when working with the output from JS console:
1) Displaying data
If you are displaying arrays or obje...
For further actions, you may consider blocking this person and/or reporting abuse
the copy command looks pretty useful! no more pressing command for me haha
Haha, it was a lifesaver for me too, especially when copying large portions of data. No more scrolling as I highlight the data!
Combine copy() with DOM scripts and it's supercharged :)
Sounds interesting.. Can you give an example/application of this?
This pastebin: pastebin.com/stZdBA45
It's about 68,000 characters long! That's a ton of dragging,
But, it's only one line long (for some reason) and is contained inside
<div class="de1"></div>
.So,
And, it's copied 👌
Or for all pastebins, querySelect ".textarea" to get the raw paste data.
🙌 I get your point now, and I can see how easier this is with the above.
Thanks for sharing!
"The best part about being a developer is flexing to your friends how good you are at copying 68,000 characters in 3 seconds." 😂
Adding on to this, if you're logging a variable in your code, you can copy it to your clipboard by right clicking the console output and selecting "Store as global variable". You can then copy the result to your clipboard with
copy(temp1)
I didn't know this. Thanks for sharing!
For console.table, Instead of displaying all the fields, you can even pass the fields to be displayed as an array like this:
So it will just display firstName and lastName. It's very handy when there are a lot of fields and we want only some of the fields
This is quite handy. Thanks for the tip!
I didn't know either, very useful. Thank you.
Glad you learned something new. You're welcome! 😃
You can find some more useful tips here
Thank you!
thanks for the copy command
You're welcome!
Useful, Thanks for sharing!
Cheers!
Cool