clearInterval function

void clearInterval([
  1. num? id
])

Cancels a timed, repeating action which was previously started by a call to setInterval()

const id = setInterval(() => {console.log('hello');}, 500);
// ...
clearInterval(id);

Implementation

void clearInterval([_i2.num? id]) {
  _i4.callMethod(
    _self,
    'clearInterval',
    [id ?? _i6.undefined],
  );
}