code: function takeNthTransducer(n, xform) {
    let i = -1;
  
    return {
      [p.init]() {
        return xform[p.init]();
      },
  
      [p.step](acc, input) {
        return ++i % n === 0 ? xform[p.step](acc, input) : acc;
      },
  
      [p.result](value) {
        return xform[p.result](value);
      }
    };
  }
docs: A transducer function that is returned by the `{@link module:xduce.transducers.takeNth|takeNth}` transducer.
  
  @private
  
  @param {number} n The skip value, meaning that only every `n`th element is retained.
  @param {module:xduce~transducerObject} xform The transducer object that the new one should be chained to.
  @return {module:xduce~transducerObject} A new transducer object, performing no transformation and chaining to the
  provided transducer object.