code: function removeTargetsFromAnimations(targetsArray, animations) {
    for (let a = animations.length; a--;) {
      if (arrayContains(targetsArray, animations[a].animatable.target)) {
        animations.splice(a, 1);
      }
    }
  }
docs: Remove targets from animation