function clearTween(object) {
    if (object instanceof Tween) {
        object.stop();

        const index = Tweens.indexOf(object);

        if (~index) {
            Tweens.splice(index, 1);
        }
    } else {
        for (let i = Tweens.length - 1; i >= 0; i--) {
            if (Tweens[i].object === object) {
                clearTween(Tweens[i]);
            }
        }
    }
}
Immediately clears all delayedCalls and tweens of the specified object.

@export
@param {object} object Target object.
@returns {void}
@example
delayedCall(500, animateIn);
clearTween(animateIn);
@example
clearTween(timeout);
timeout = delayedCall(500, () => animateIn());
@example
tween(data, { value: 0.3 }, 1000, 'linear');
clearTween(data);