9213cdba3afa13bbfec4b943d41e826d0b029dc56b45cd66f342f59faca1c4d805039821c20545666dbc7e49f31c36f8f26ca3910e13e42ab0029eac65ed16 380 B

12345678910111213141516
  1. /*!
  2. * has-value <https://github.com/jonschlinkert/has-value>
  3. *
  4. * Copyright (c) 2014-2017, Jon Schlinkert.
  5. * Licensed under the MIT License.
  6. */
  7. 'use strict';
  8. var isObject = require('isobject');
  9. var hasValues = require('has-values');
  10. var get = require('get-value');
  11. module.exports = function(val, prop) {
  12. return hasValues(isObject(val) && prop ? get(val, prop) : val);
  13. };