kodadot/nft-gallery

View on GitHub
utils/shouldUpdate.ts

Summary

Maintainability
A
0 mins
Test Coverage
function shouldUpdate<T = string>(val: T, oldVal: T): boolean {
  return val && val !== oldVal
}

export default shouldUpdate