GitHub

isCategory

import { isCategory } from '@daffodil/category/testing'

A helper function to verify that a model is a Category.

function isCategory(category: DaffCategory): boolean