source: imaps-frontend/node_modules/lodash-es/_hashHas.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 624 bytes
Line 
1import nativeCreate from './_nativeCreate.js';
2
3/** Used for built-in method references. */
4var objectProto = Object.prototype;
5
6/** Used to check objects for own properties. */
7var hasOwnProperty = objectProto.hasOwnProperty;
8
9/**
10 * Checks if a hash value for `key` exists.
11 *
12 * @private
13 * @name has
14 * @memberOf Hash
15 * @param {string} key The key of the entry to check.
16 * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
17 */
18function hashHas(key) {
19 var data = this.__data__;
20 return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
21}
22
23export default hashHas;
Note: See TracBrowser for help on using the repository browser.