Skip to main content

Name

msys.counter.reset — Reset a counter

Synopsis

msys.counter.reset(object_or_path);

object_or_path: mixed

Description

Resets the given counter object or counter associated with the given path to 0. If the supplied counter path does not have a counter associated with it, then it is created with strict semantics.

Enable this function with the statement require('msys.counter');.

See Also

Was this page helpful?