Remove semicolons.

This commit is contained in:
John-David Dalton
2017-02-04 23:50:10 -08:00
parent f3a8e55e70
commit 6cb3460fce
452 changed files with 4261 additions and 4261 deletions

View File

@@ -1,7 +1,7 @@
import MapCache from './MapCache.js';
import MapCache from './MapCache.js'
/** Used to stand-in for `undefined` hash values. */
const HASH_UNDEFINED = '__lodash_hash_undefined__';
const HASH_UNDEFINED = '__lodash_hash_undefined__'
class SetCache {
@@ -13,12 +13,12 @@ class SetCache {
* @param {Array} [values] The values to cache.
*/
constructor(values) {
let index = -1;
const length = values == null ? 0 : values.length;
let index = -1
const length = values == null ? 0 : values.length
this.__data__ = new MapCache;
this.__data__ = new MapCache
while (++index < length) {
this.add(values[index]);
this.add(values[index])
}
}
@@ -31,8 +31,8 @@ class SetCache {
* @returns {Object} Returns the cache instance.
*/
add(value) {
this.__data__.set(value, HASH_UNDEFINED);
return this;
this.__data__.set(value, HASH_UNDEFINED)
return this
}
/**
@@ -43,10 +43,10 @@ class SetCache {
* @returns {number} Returns `true` if `value` is found, else `false`.
*/
has(value) {
return this.__data__.has(value);
return this.__data__.has(value)
}
}
SetCache.prototype.push = SetCache.prototype.add;
SetCache.prototype.push = SetCache.prototype.add
export default SetCache;
export default SetCache