style

The style module provides two helper functions that retrieve rules and rule indexes from the global rules collection.

Source:

Methods

(inner) getRule(rule) → {Object|undefined}

Source:
Parameters:
Name Type Description
rule string

The name of the rule to retrieve.

Returns:

If the rule is located returns the rule object, otherwise undefined.

Type
Object | undefined

(inner) getRuleIndex(rule) → {number|undefined}

Source:
Parameters:
Name Type Description
rule string

The name of the rule index to retrieve.

Returns:

If the rule is located returns the rule's index in the global rules collection, otherwise undefined.

Type
number | undefined