react
react copied to clipboard
[Code Refactor] Replace object checks with isObject function
I find there were many code place use 'type of xxx === 'object' && xxx !== null'
I think should use a util function named isObject
to optimize this behavior.
I could add this function to shared and replace the before code.
should i do that?
Looking forward to your feedback!