.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / unset-value / node_modules / has-value / index.js
1 /*!
2  * has-value <https://github.com/jonschlinkert/has-value>
3  *
4  * Copyright (c) 2014-2016, Jon Schlinkert.
5  * Licensed under the MIT License.
6  */
7
8 'use strict';
9
10 var isObject = require('isobject');
11 var hasValues = require('has-values');
12 var get = require('get-value');
13
14 module.exports = function(obj, prop, noZero) {
15   if (isObject(obj)) {
16     return hasValues(get(obj, prop), noZero);
17   }
18   return hasValues(obj, prop);
19 };