説明なし

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. };