aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/_baseHasIn.js
blob: 2e0d04269f16e84fbef5d08ed7bce0b10b597341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * 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);
}

module.exports = baseHasIn;