Bug:Fix file validation issue
[vnfsdk/refrepo.git] / vnfmarket / src / main / webapp / vnfmarket / node_modules / lodash / internal / mapHas.js
1 /** Used for native method references. */
2 var objectProto = Object.prototype;
3
4 /** Used to check objects for own properties. */
5 var hasOwnProperty = objectProto.hasOwnProperty;
6
7 /**
8  * Checks if a cached value for `key` exists.
9  *
10  * @private
11  * @name has
12  * @memberOf _.memoize.Cache
13  * @param {string} key The key of the entry to check.
14  * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
15  */
16 function mapHas(key) {
17   return key != '__proto__' && hasOwnProperty.call(this.__data__, key);
18 }
19
20 module.exports = mapHas;