Skip to content

isTrait

isTrait(item): item is Trait

Generated from the TypeQLite grammar.

Whether item is a Trait node, as a type guard. It is true for any subtype too.

unknown

item is Trait

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.