Tags » Javascript

What's a good way to turn on/off debug statements?


What’s a good way to turn on/off debug statements?

Currently I have something like:

var debug = true; if (debug) console.log("debug statement here"); 

But is there a way to turn the whole debug statement on/off in JavaScript, so that it's somehow not even evaluated when debug statements are turned off? 14 more words

Reddit

Anyone use standard code style? I just made this...


Anyone use standard code style? I just made this…
http://ift.tt/1NbsT8r

Submitted May 01, 2016 at 01:56AM by DapperGinger
via reddit http://ift.tt/1TlMZcC

Reddit

Framework options overload - suggestions for a average-complexity budgeting app?


Framework options overload – suggestions for a average-complexity budgeting app?

Hello /r/javascript,

I'm planning a new hobby project to replace YNAB (youneedabudget.com) with a home-grown app to fit my perfect use case. 305 more words

Reddit

[Help] How to display every object's value for a certain property which they all have.


How to display every object’s value for a certain property which they all have.

I am getting an array of objects (representing a steam trade offer, doesnt matter in what I want to do though). 129 more words

Reddit

What are your favorite ES6 feature(s)?


What are your favorite ES6 feature(s)?
No text found

Submitted April 30, 2016 at 10:16PM by sjalfurstaralfur
via reddit http://ift.tt/1O3m2sD

Reddit

Setting up HMR was challenging so I wrote: "Webpack’s HMR And React-Hot-Loader — The Missing Manual"


Setting up HMR was challenging so I wrote: “Webpack’s HMR And React-Hot-Loader — The Missing Manual”
http://ift.tt/1NaFYPe

Submitted April 30, 2016 at 09:00PM by rdv100… 6 more words

Reddit

How to manage logged-in state across multiple subdomains with a JWT?


How to manage logged-in state across multiple subdomains with a JWT?

So I am using JWTs to manage logged-in state for users. We also have translated sites on subdomains, eg: 107 more words

Reddit