This single-function JavaScript module is a utility for comparing two objects for a given set of keys. I find it handy when looking for changing props in React component lifecycle methods like componentDidUpdate
.
yarn install @lourd/equal-by-keys
Available as a simple <script>
through unpkg.com. The function will be available as the global variable equalByKeys
.