2 * has-values <https://github.com/jonschlinkert/has-values>
4 * Copyright (c) 2014-2015, Jon Schlinkert.
5 * Licensed under the MIT License.
10 module.exports = function hasValue(o, noZero) {
11 if (o === null || o === undefined) {
15 if (typeof o === 'boolean') {
19 if (typeof o === 'number') {
20 if (o === 0 && noZero === true) {
26 if (o.length !== undefined) {
27 return o.length !== 0;
31 if (o.hasOwnProperty(key)) {