Function: $mu()
$mu(
subject,name?,variantKey?):Mutator
Create a new named Collector and associated Mutator. $mu is a shorthand combining collect and mutate.
Note: If the name parameter is omitted a randomly generated key will be assigned to the collector.
Parameters
| Parameter | Type | Description |
|---|---|---|
subject | Subject | A CSS selector, XPath selector, or Element, or SelectorFn that the Collector should manage. |
name? | string | The name of the collector of future reference from mutate. |
variantKey? | string | The variant key to associate with the Mutator. |
Returns
The Mutator instance created.