main
Last change
on this file since d565449 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 | |
---|
1 | import nativeCreate from './_nativeCreate.js';
|
---|
2 |
|
---|
3 | /** Used for built-in method references. */
|
---|
4 | var objectProto = Object.prototype;
|
---|
5 |
|
---|
6 | /** Used to check objects for own properties. */
|
---|
7 | var 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 | */
|
---|
18 | function hashHas(key) {
|
---|
19 | var data = this.__data__;
|
---|
20 | return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
|
---|
21 | }
|
---|
22 |
|
---|
23 | export default hashHas;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.