Fast way to destinct your variables logged
I always find my self writing console.log
statements with the name of the variable for example:
let language = 'Javascript';
console.log('language', language);
So in order to save time, I created this little package that logs the name of the variable automatically.
Install with npm:
npm i --save-dev @aliataf/log
import log from '@aliataf/log';
const firstName = 'Ali';
const lastName = 'Ataf';
const language = 'Javascript';
log({ language });
/* =>
language = Javascript
*/
log({ firstName, lastName });
/* =>
firstName = Ali
lastName = Ataf
*/