Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
To repozytorium jest zarchiwizowane. Możesz wyświetlać pliki i je sklonować, ale nie możesz do niego przepychać zmian lub otwierać zgłoszeń/Pull Requestów.
|
123456789101112131415161718192021222324252627 |
- 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
|