source: trip-planner-front/node_modules/has-value/index.js@ 8d391a1

Last change on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 380 bytes
Line 
1/*!
2 * has-value <https://github.com/jonschlinkert/has-value>
3 *
4 * Copyright (c) 2014-2017, Jon Schlinkert.
5 * Licensed under the MIT License.
6 */
7
8'use strict';
9
10var isObject = require('isobject');
11var hasValues = require('has-values');
12var get = require('get-value');
13
14module.exports = function(val, prop) {
15 return hasValues(isObject(val) && prop ? get(val, prop) : val);
16};
Note: See TracBrowser for help on using the repository browser.