Replicating airbnb following the atomic design principles...
Home > @nextbnb/common > isHost
Checks whether a given value is an IHost
Signature:
isHost: (arg: any) => arg is IHost
Here’s an example of how to use this guard
const host = { id: '1', username: 'john', name: '}
isHost(host) // true