Chemistry · function

elementIndex

The index of an element symbol, or -1 for anything this package does not carry.

Explained in Chemistry.

function elementIndex(symbol: string): number
import { elementIndex } from '@driftengine/chemistry';

Parameters

ParameterTypeDescription
symbolstring