code: function ensureVector(values, defaultDtype) {
    if (isMissing(values) || values.type !== vectorProto.type) {
      values = Array.isArray(values) ?
        inferVectorDtype(values.slice(), defaultDtype) :
        inferVectorDtype([values], defaultDtype);
    }
    return values;
  }
docs: Returns a vector representing the given values, which can be either a vector, array, or scalar. If already a vector, this vector is simply returned. If an array, it's converted to a vector with inferred dtype. If a scalar, it's wrapped in an array and converted to a vector also. The defaultDtype is used only if all values are missing.  It defaults to 'object' if undefined.