hipstersmoothie / storybook-addon-react-docgen

A storybook addon to display react docgen info.
MIT License
87 stars 14 forks source link

Change type checking of object to use Object.is #113

Closed sandrews2 closed 4 years ago

sandrews2 commented 4 years ago

When v === null , typeof v === 'object' was returning true. And the subsequent check for v.type was throwing an error. An example of this is when a prop is something like [null, null, null, 'display'] which is very common when using theme-ui