Synclets logoSynclets

isAtom

The isAtom function is a type guard that identifies Atom values.

isAtom(thing: unknown): thing is Atom
TypeDescription
thingunknown

The value to test.

returnsthing is Atom

True if the value is a valid Atom.

This function checks whether a value conforms to the Atom type, which is a primitive value (string, number, boolean, null, or Undefined). Use this for runtime validation of atom data before processing.

Since

v0.0.0