Files
lodash/_baseHasIn.js
John-David Dalton c731ef8e1e Bump to v4.13.0.
2016-05-22 19:32:32 -07:00

17 lines
417 B
JavaScript

define([], function() {
/**
* The base implementation of `_.hasIn` without support for deep paths.
*
* @private
* @param {Object} [object] The object to query.
* @param {Array|string} key The key to check.
* @returns {boolean} Returns `true` if `key` exists, else `false`.
*/
function baseHasIn(object, key) {
return object != null && key in Object(object);
}
return baseHasIn;
});