From 0469abd4a9c9270a1fdc962969e36e63699af8b4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 10 Dec 2017 21:51:33 +0100 Subject: upgrade dependencies --- node_modules/has-value/index.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'node_modules/has-value/index.js') diff --git a/node_modules/has-value/index.js b/node_modules/has-value/index.js index 90687c877..c23749488 100644 --- a/node_modules/has-value/index.js +++ b/node_modules/has-value/index.js @@ -1,7 +1,7 @@ /*! * has-value * - * Copyright (c) 2014-2016, Jon Schlinkert. + * Copyright (c) 2014-2017, Jon Schlinkert. * Licensed under the MIT License. */ @@ -11,9 +11,6 @@ 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); +module.exports = function(val, prop) { + return hasValues(isObject(val) && prop ? get(val, prop) : val); }; -- cgit v1.2.3