worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
31
node_modules/react-transition-group/esm/utils/SimpleSet.js
generated
vendored
Normal file
31
node_modules/react-transition-group/esm/utils/SimpleSet.js
generated
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
var SimpleSet = /*#__PURE__*/function () {
|
||||
function SimpleSet() {
|
||||
this.v = [];
|
||||
}
|
||||
|
||||
var _proto = SimpleSet.prototype;
|
||||
|
||||
_proto.clear = function clear() {
|
||||
this.v.length = 0;
|
||||
};
|
||||
|
||||
_proto.has = function has(k) {
|
||||
return this.v.indexOf(k) !== -1;
|
||||
};
|
||||
|
||||
_proto.add = function add(k) {
|
||||
if (this.has(k)) return;
|
||||
this.v.push(k);
|
||||
};
|
||||
|
||||
_proto.delete = function _delete(k) {
|
||||
var idx = this.v.indexOf(k);
|
||||
if (idx === -1) return false;
|
||||
this.v.splice(idx, 1);
|
||||
return true;
|
||||
};
|
||||
|
||||
return SimpleSet;
|
||||
}();
|
||||
|
||||
export { SimpleSet as default };
|
||||
Loading…
Add table
Add a link
Reference in a new issue