From 26105034da4fcce7ac883c899d781f016559310d Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 8 Nov 2018 00:38:48 +0800 Subject: switch to vuepress --- node_modules/has-value/index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 node_modules/has-value/index.js (limited to 'node_modules/has-value/index.js') diff --git a/node_modules/has-value/index.js b/node_modules/has-value/index.js new file mode 100644 index 00000000..c2374948 --- /dev/null +++ b/node_modules/has-value/index.js @@ -0,0 +1,16 @@ +/*! + * has-value + * + * Copyright (c) 2014-2017, 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(val, prop) { + return hasValues(isObject(val) && prop ? get(val, prop) : val); +}; -- cgit v1.2.3