mirror of
https://github.com/actions/setup-node.git
synced 2025-12-17 02:31:38 +08:00
.
This commit is contained in:
19
node_modules/unset-value/node_modules/has-value/index.js
generated
vendored
Normal file
19
node_modules/unset-value/node_modules/has-value/index.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*!
|
||||
* has-value <https://github.com/jonschlinkert/has-value>
|
||||
*
|
||||
* Copyright (c) 2014-2016, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isObject = require('isobject');
|
||||
var hasValues = require('has-values');
|
||||
var get = require('get-value');
|
||||
|
||||
module.exports = function(obj, prop, noZero) {
|
||||
if (isObject(obj)) {
|
||||
return hasValues(get(obj, prop), noZero);
|
||||
}
|
||||
return hasValues(obj, prop);
|
||||
};
|
||||
Reference in New Issue
Block a user