Skip to content

Commit 6cb3460

Browse files
committed
Remove semicolons.
1 parent f3a8e55 commit 6cb3460

File tree

452 files changed

+4262
-4262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

452 files changed

+4262
-4262
lines changed

.internal/Hash.js

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** Used to stand-in for `undefined` hash values. */
2-
const HASH_UNDEFINED = '__lodash_hash_undefined__';
2+
const HASH_UNDEFINED = '__lodash_hash_undefined__'
33

44
class Hash {
55

@@ -11,13 +11,13 @@ class Hash {
1111
* @param {Array} [entries] The key-value pairs to cache.
1212
*/
1313
constructor(entries) {
14-
let index = -1;
15-
const length = entries == null ? 0 : entries.length;
14+
let index = -1
15+
const length = entries == null ? 0 : entries.length
1616

17-
this.clear();
17+
this.clear()
1818
while (++index < length) {
19-
const entry = entries[index];
20-
this.set(entry[0], entry[1]);
19+
const entry = entries[index]
20+
this.set(entry[0], entry[1])
2121
}
2222
}
2323

@@ -27,8 +27,8 @@ class Hash {
2727
* @memberOf Hash
2828
*/
2929
clear() {
30-
this.__data__ = Object.create(null);
31-
this.size = 0;
30+
this.__data__ = Object.create(null)
31+
this.size = 0
3232
}
3333

3434
/**
@@ -40,9 +40,9 @@ class Hash {
4040
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
4141
*/
4242
delete(key) {
43-
const result = this.has(key) && delete this.__data__[key];
44-
this.size -= result ? 1 : 0;
45-
return result;
43+
const result = this.has(key) && delete this.__data__[key]
44+
this.size -= result ? 1 : 0
45+
return result
4646
}
4747

4848
/**
@@ -53,9 +53,9 @@ class Hash {
5353
* @returns {*} Returns the entry value.
5454
*/
5555
get(key) {
56-
const data = this.__data__;
57-
const result = data[key];
58-
return result === HASH_UNDEFINED ? undefined : result;
56+
const data = this.__data__
57+
const result = data[key]
58+
return result === HASH_UNDEFINED ? undefined : result
5959
}
6060

6161
/**
@@ -66,8 +66,8 @@ class Hash {
6666
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
6767
*/
6868
has(key) {
69-
const data = this.__data__;
70-
return data[key] !== undefined;
69+
const data = this.__data__
70+
return data[key] !== undefined
7171
}
7272

7373
/**
@@ -79,11 +79,11 @@ class Hash {
7979
* @returns {Object} Returns the hash instance.
8080
*/
8181
set(key, value) {
82-
const data = this.__data__;
83-
this.size += this.has(key) ? 0 : 1;
84-
data[key] = value === undefined ? HASH_UNDEFINED : value;
85-
return this;
82+
const data = this.__data__
83+
this.size += this.has(key) ? 0 : 1
84+
data[key] = value === undefined ? HASH_UNDEFINED : value
85+
return this
8686
}
8787
}
8888

89-
export default Hash;
89+
export default Hash

.internal/ListCache.js

+28-28
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import assocIndexOf from './assocIndexOf.js';
1+
import assocIndexOf from './assocIndexOf.js'
22

33
/** Built-in value references. */
4-
const splice = Array.prototype.splice;
4+
const splice = Array.prototype.splice
55

66
class ListCache {
77

@@ -13,13 +13,13 @@ class ListCache {
1313
* @param {Array} [entries] The key-value pairs to cache.
1414
*/
1515
constructor(entries) {
16-
let index = -1;
17-
const length = entries == null ? 0 : entries.length;
16+
let index = -1
17+
const length = entries == null ? 0 : entries.length
1818

19-
this.clear();
19+
this.clear()
2020
while (++index < length) {
21-
const entry = entries[index];
22-
this.set(entry[0], entry[1]);
21+
const entry = entries[index]
22+
this.set(entry[0], entry[1])
2323
}
2424
}
2525

@@ -29,8 +29,8 @@ class ListCache {
2929
* @memberOf ListCache
3030
*/
3131
clear() {
32-
this.__data__ = [];
33-
this.size = 0;
32+
this.__data__ = []
33+
this.size = 0
3434
}
3535

3636
/**
@@ -41,20 +41,20 @@ class ListCache {
4141
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
4242
*/
4343
delete(key) {
44-
const data = this.__data__;
45-
const index = assocIndexOf(data, key);
44+
const data = this.__data__
45+
const index = assocIndexOf(data, key)
4646

4747
if (index < 0) {
48-
return false;
48+
return false
4949
}
50-
const lastIndex = data.length - 1;
50+
const lastIndex = data.length - 1
5151
if (index == lastIndex) {
52-
data.pop();
52+
data.pop()
5353
} else {
54-
splice.call(data, index, 1);
54+
splice.call(data, index, 1)
5555
}
56-
--this.size;
57-
return true;
56+
--this.size
57+
return true
5858
}
5959

6060
/**
@@ -65,9 +65,9 @@ class ListCache {
6565
* @returns {*} Returns the entry value.
6666
*/
6767
get(key) {
68-
const data = this.__data__;
69-
const index = assocIndexOf(data, key);
70-
return index < 0 ? undefined : data[index][1];
68+
const data = this.__data__
69+
const index = assocIndexOf(data, key)
70+
return index < 0 ? undefined : data[index][1]
7171
}
7272

7373
/**
@@ -78,7 +78,7 @@ class ListCache {
7878
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
7979
*/
8080
has(key) {
81-
return assocIndexOf(this.__data__, key) > -1;
81+
return assocIndexOf(this.__data__, key) > -1
8282
}
8383

8484
/**
@@ -90,17 +90,17 @@ class ListCache {
9090
* @returns {Object} Returns the list cache instance.
9191
*/
9292
set(key, value) {
93-
const data = this.__data__;
94-
const index = assocIndexOf(data, key);
93+
const data = this.__data__
94+
const index = assocIndexOf(data, key)
9595

9696
if (index < 0) {
97-
++this.size;
98-
data.push([key, value]);
97+
++this.size
98+
data.push([key, value])
9999
} else {
100-
data[index][1] = value;
100+
data[index][1] = value
101101
}
102-
return this;
102+
return this
103103
}
104104
}
105105

106-
export default ListCache;
106+
export default ListCache

.internal/MapCache.js

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
import Hash from './Hash.js';
3-
import ListCache from './ListCache.js';
2+
import Hash from './Hash.js'
3+
import ListCache from './ListCache.js'
44

55
/**
66
* Gets the data for `map`.
@@ -11,10 +11,10 @@ import ListCache from './ListCache.js';
1111
* @returns {*} Returns the map data.
1212
*/
1313
function getMapData({ __data__ }, key) {
14-
const data = __data__;
14+
const data = __data__
1515
return isKeyable(key)
1616
? data[typeof key == 'string' ? 'string' : 'hash']
17-
: data.map;
17+
: data.map
1818
}
1919

2020
/**
@@ -25,10 +25,10 @@ function getMapData({ __data__ }, key) {
2525
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
2626
*/
2727
function isKeyable(value) {
28-
const type = typeof value;
28+
const type = typeof value
2929
return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
3030
? (value !== '__proto__')
31-
: (value === null);
31+
: (value === null)
3232
}
3333

3434
class MapCache {
@@ -41,13 +41,13 @@ class MapCache {
4141
* @param {Array} [entries] The key-value pairs to cache.
4242
*/
4343
constructor(entries) {
44-
let index = -1;
45-
const length = entries == null ? 0 : entries.length;
44+
let index = -1
45+
const length = entries == null ? 0 : entries.length
4646

47-
this.clear();
47+
this.clear()
4848
while (++index < length) {
49-
const entry = entries[index];
50-
this.set(entry[0], entry[1]);
49+
const entry = entries[index]
50+
this.set(entry[0], entry[1])
5151
}
5252
}
5353

@@ -57,12 +57,12 @@ class MapCache {
5757
* @memberOf MapCache
5858
*/
5959
clear() {
60-
this.size = 0;
60+
this.size = 0
6161
this.__data__ = {
6262
'hash': new Hash,
6363
'map': new (Map || ListCache),
6464
'string': new Hash
65-
};
65+
}
6666
}
6767

6868
/**
@@ -73,9 +73,9 @@ class MapCache {
7373
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
7474
*/
7575
delete(key) {
76-
const result = getMapData(this, key)['delete'](key);
77-
this.size -= result ? 1 : 0;
78-
return result;
76+
const result = getMapData(this, key)['delete'](key)
77+
this.size -= result ? 1 : 0
78+
return result
7979
}
8080

8181
/**
@@ -86,7 +86,7 @@ class MapCache {
8686
* @returns {*} Returns the entry value.
8787
*/
8888
get(key) {
89-
return getMapData(this, key).get(key);
89+
return getMapData(this, key).get(key)
9090
}
9191

9292
/**
@@ -97,7 +97,7 @@ class MapCache {
9797
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
9898
*/
9999
has(key) {
100-
return getMapData(this, key).has(key);
100+
return getMapData(this, key).has(key)
101101
}
102102

103103
/**
@@ -109,13 +109,13 @@ class MapCache {
109109
* @returns {Object} Returns the map cache instance.
110110
*/
111111
set(key, value) {
112-
const data = getMapData(this, key);
113-
const size = data.size;
112+
const data = getMapData(this, key)
113+
const size = data.size
114114

115-
data.set(key, value);
116-
this.size += data.size == size ? 0 : 1;
117-
return this;
115+
data.set(key, value)
116+
this.size += data.size == size ? 0 : 1
117+
return this
118118
}
119119
}
120120

121-
export default MapCache;
121+
export default MapCache

.internal/SetCache.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import MapCache from './MapCache.js';
1+
import MapCache from './MapCache.js'
22

33
/** Used to stand-in for `undefined` hash values. */
4-
const HASH_UNDEFINED = '__lodash_hash_undefined__';
4+
const HASH_UNDEFINED = '__lodash_hash_undefined__'
55

66
class SetCache {
77

@@ -13,12 +13,12 @@ class SetCache {
1313
* @param {Array} [values] The values to cache.
1414
*/
1515
constructor(values) {
16-
let index = -1;
17-
const length = values == null ? 0 : values.length;
16+
let index = -1
17+
const length = values == null ? 0 : values.length
1818

19-
this.__data__ = new MapCache;
19+
this.__data__ = new MapCache
2020
while (++index < length) {
21-
this.add(values[index]);
21+
this.add(values[index])
2222
}
2323
}
2424

@@ -31,8 +31,8 @@ class SetCache {
3131
* @returns {Object} Returns the cache instance.
3232
*/
3333
add(value) {
34-
this.__data__.set(value, HASH_UNDEFINED);
35-
return this;
34+
this.__data__.set(value, HASH_UNDEFINED)
35+
return this
3636
}
3737

3838
/**
@@ -43,10 +43,10 @@ class SetCache {
4343
* @returns {number} Returns `true` if `value` is found, else `false`.
4444
*/
4545
has(value) {
46-
return this.__data__.has(value);
46+
return this.__data__.has(value)
4747
}
4848
}
4949

50-
SetCache.prototype.push = SetCache.prototype.add;
50+
SetCache.prototype.push = SetCache.prototype.add
5151

52-
export default SetCache;
52+
export default SetCache

0 commit comments

Comments
 (0)