项目原始demo,不改动
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
To repozytorium jest zarchiwizowane. Możesz wyświetlać pliki i je sklonować, ale nie możesz do niego przepychać zmian lub otwierać zgłoszeń/Pull Requestów.

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