fix: fix the jsdoc of SetCache#has (#4739)

The return type should be `boolean` instead of `number`
This commit is contained in:
Chen Yu
2020-05-06 04:54:24 +08:00
committed by GitHub
parent 0541ec89cc
commit 08110bdcf3

View File

@@ -40,7 +40,7 @@ class SetCache {
* *
* @memberOf SetCache * @memberOf SetCache
* @param {*} value The value to search for. * @param {*} value The value to search for.
* @returns {number} Returns `true` if `value` is found, else `false`. * @returns {boolean} Returns `true` if `value` is found, else `false`.
*/ */
has(value) { has(value) {
return this.__data__.has(value) return this.__data__.has(value)