Closed z3t0 closed 8 years ago
Hi could you please explain how this line works, I am still quite new to some things in javascript.
https://github.com/deathcap/voxel-plugins/blob/master/plugins.js#L196
return !!(plugin && plugin.pluginEnabled);
!! coerces to boolean, so this returns true if the plugin exists (not a "falsey" value) and is enabled, otherwise false
thanks!
Hi could you please explain how this line works, I am still quite new to some things in javascript.
https://github.com/deathcap/voxel-plugins/blob/master/plugins.js#L196