kodadot/nft-gallery

View on GitHub
utils/countOf.ts

Summary

Maintainability
A
0 mins
Test Coverage
export function countOf(value: DataWithCount) {
  return value.count || value.totalCount
}

export type DataWithCount = {
  totalCount?: number
  count?: number
}