UNPKG

element-book

Version:

An [`element-vir`](https://npmjs.com/package/element-vir) drop-in element for building, testing, and demonstrating a collection of elements (or, in other words, a design system).

10 lines (9 loc) 254 B
import { check } from '@augment-vir/assert'; /** * Check if the input is a book entry of the given type. * * @internal */ export function isBookEntry(entry, entryType) { return check.hasKey(entry, 'entryType') && entry.entryType === entryType; }