* Checks if `path` is a direct property of `object`. * * @static * @since 0.1.0 * @memberOf _ * @category Object * @param {Object} object The object to query. * @param {Array|string} path The path to check. * @returns {boolean} Returns `true` if `path` exists, else `false`. * @exam
(object, path)
| 28803 | * // => false |
| 28804 | */ |
| 28805 | function has(object, path) { |
| 28806 | return object != null && hasPath(object, path, baseHas); |
| 28807 | } |
| 28808 | |
| 28809 | module.exports = has; |
| 28810 |
no test coverage detected