32e3ae8758abe74b52239dfac1388663b98a4e4c443dda8132b0409fcc6e9d25cdf14a10a722bb247b964826332e0fb0d620cb0a5e737b57400e1e9aae8f1f 426 B

12345678910111213141516171819
  1. /*!
  2. * has-value <https://github.com/jonschlinkert/has-value>
  3. *
  4. * Copyright (c) 2014-2016, 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(obj, prop, noZero) {
  12. if (isObject(obj)) {
  13. return hasValues(get(obj, prop), noZero);
  14. }
  15. return hasValues(obj, prop);
  16. };