'use strict';

const _ = require('lodash');
const assert = require('assert');

exports = module.exports = obj => {
  const values = _.values(obj);

  assert(values.length === 1);

  return values[0];
};

'use strict';

const _ = require('lodash');
const assert = require('assert');

/**
 * Converts a single-key object into its value.
 */
exports = module.exports = obj => {
  const values = _.values(obj);

  assert(values.length === 1);

  return values[0];
};

document single-value