mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-17 07:43:38 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
27
node_modules/rxjs/_esm2015/util/Set.js
generated
vendored
Normal file
27
node_modules/rxjs/_esm2015/util/Set.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import { root } from './root';
|
||||
export function minimalSetImpl() {
|
||||
// THIS IS NOT a full impl of Set, this is just the minimum
|
||||
// bits of functionality we need for this library.
|
||||
return class MinimalSet {
|
||||
constructor() {
|
||||
this._values = [];
|
||||
}
|
||||
add(value) {
|
||||
if (!this.has(value)) {
|
||||
this._values.push(value);
|
||||
}
|
||||
}
|
||||
has(value) {
|
||||
return this._values.indexOf(value) !== -1;
|
||||
}
|
||||
get size() {
|
||||
return this._values.length;
|
||||
}
|
||||
clear() {
|
||||
this._values.length = 0;
|
||||
}
|
||||
}
|
||||
;
|
||||
}
|
||||
export const Set = root.Set || minimalSetImpl();
|
||||
//# sourceMappingURL=Set.js.map
|
||||
Reference in New Issue
Block a user