Last change
on this file since 84d0fbb was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
380 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 |
|
---|
| 10 | var isObject = require('isobject');
|
---|
| 11 | var hasValues = require('has-values');
|
---|
| 12 | var get = require('get-value');
|
---|
| 13 |
|
---|
| 14 | module.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.