Created
November 18, 2019 15:45
-
-
Save sibelius/2261a587b608aa7612087ef476e119ab to your computer and use it in GitHub Desktop.
consoleAll will pretty print your object showing all nested properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import prettyFormat from 'pretty-format'; | |
export const consoleAll = (val: any) => { | |
// eslint-disable-next-line | |
console.log(prettyFormat(val)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment