Logger for Immutable.js
Debugging utility for human readable printing of Immutable.js data structures.
Installation
Using npm
npm i immutable-console -D
Using yarn
yarn add immutable-console -D
Usage
Logger utility can be used as-is to show Immutable.js data structures in human readable format or with redux-logger
middleware for Redux.
AS-IS example
;; const user = Map id: '42' name: 'John Doe'; immutableConsole; // {id: '42', name: 'John Doe'}console; // {size: 2, __altered: false, __hash: undefined, __ownerID: undefined, _root: {ownerID: f, entries: Array(2)}, length: 2}
redux-logger example
;;; const logger = ; const store = ;
License
MIT