@chibicode/logchain

console.log(obj) which returns obj

Usage no npm install needed!

<script type="module">
  import chibicodeLogchain from 'https://cdn.skypack.dev/@chibicode/logchain';
</script>

README

logchain

Does console.log(obj) and returns obj. Automatically calls toJS on Immutable.js objects as well.

// Does console.log({ a: 1 })
logchain({ a: 1 }).a // returns 1

I wrote this b/c I tried to google for something like this and couldn't find one. Let me know via Twitter (@chibicode) if you know a good alternative.