4irbnb

Replicating airbnb following the atomic design principles...

View the Project on GitHub kokiebisu/4irbnb

Home > @nextbnb/common > isHost

isHost variable

Checks whether a given value is an IHost

Signature:

isHost: (arg: any) => arg is IHost

Example

Here’s an example of how to use this guard

const host = { id: '1', username: 'john', name: '}
isHost(host) // true