PHP 8.2.30
Preview: SimpleSet.js Size: 670 B
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/react-transition-group/cjs/utils/SimpleSet.js

"use strict";

exports.__esModule = true;
exports.default = void 0;

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;
}();

exports.default = SimpleSet;
module.exports = exports.default;

Directory Contents

Dirs: 0 × Files: 4

Name Size Perms Modified Actions
4.88 KB lrw-r--r-- 2026-02-28 00:26:48
Edit Download
1.12 KB lrw-r--r-- 2026-02-28 00:28:04
Edit Download
183 B lrw-r--r-- 2026-02-28 00:28:26
Edit Download
670 B lrw-r--r-- 2026-02-28 00:28:32
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).