FormidableLabs / react-fast-compare

fastest deep equal comparison for React
MIT License
1.59k stars 54 forks source link

Ignore Arrow Functions #78

Closed tyherox closed 4 years ago

tyherox commented 4 years ago

Hello, thanks for the awesome library.

I was wondering if there was an option to ignore arrow / anonymous function values since they always return false (as mentioned by what @chrisbolin wrote here).

Thanks again!

chrisbolin commented 4 years ago

hi @tyherox! while you can't ignore functions in the current version, you could try version 1.0.0 which did treat functions as equal - see the changelog https://github.com/FormidableLabs/react-fast-compare/blob/master/CHANGELOG.md#200-2018-06-04