12345678910111213141516 |
- '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);
- };
|