wallet-core/node_modules/has-value/index.js

17 lines
380 B
JavaScript
Raw Normal View History

2017-08-14 05:01:11 +02:00
/*!
* has-value <https://github.com/jonschlinkert/has-value>
*
2017-12-10 21:51:33 +01:00
* Copyright (c) 2014-2017, Jon Schlinkert.
2017-08-14 05:01:11 +02:00
* Licensed under the MIT License.
*/
'use strict';
var isObject = require('isobject');
var hasValues = require('has-values');
var get = require('get-value');
2017-12-10 21:51:33 +01:00
module.exports = function(val, prop) {
return hasValues(isObject(val) && prop ? get(val, prop) : val);
2017-08-14 05:01:11 +02:00
};