function flatten(values) {
  if (!Array.isArray(values)) {
    return values;
  }

  const result = [];
  for (let i = 0; i < values.length; i++) {
    const value = values[i];
    if (Array.isArray(value)) {
      result.push.apply(result, value);
    } else {
      result.push(value);
    }
  }

  return result;
}
Returns a typed array containing the property values.

@returns {*} The typed array containing the property values or <code>undefined</code> if the property values are not stored in a typed array.

@private