blob: c23749488f6e556e65da3cac21c45a0643adfaf4 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001/*!
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
8'use strict';
9
10var isObject = require('isobject');
11var hasValues = require('has-values');
12var get = require('get-value');
13
14module.exports = function(val, prop) {
15 return hasValues(isObject(val) && prop ? get(val, prop) : val);
16};