"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = values;

function _foreach() {
  const data = _interopRequireDefault(require("./foreach"));

  _foreach = function () {
    return data;
  };

  return data;
}

/**
 * get all object values.
 * @name values
 * @param {object} object
 * @returns {[]} object's values
 * @example
 * ```js
 *  values({ a: 1, b: 2, c: 3 }) // => [1, 2, 3]
 * ```
 */
function values(object) {
  const objValues = []; // $FlowFixMe

  (0, _foreach().default)(object, val => objValues.push(val));
  return objValues;
}