collections.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.writingMethods = exports.collectionConstructor = void 0;
  4. /*
  5. * eslint-plugin-sonarjs
  6. * Copyright (C) 2018-2021 SonarSource SA
  7. * mailto:info AT sonarsource DOT com
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU Lesser General Public
  11. * License as published by the Free Software Foundation; either
  12. * version 3 of the License, or (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17. * Lesser General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public License
  20. * along with this program; if not, write to the Free Software Foundation,
  21. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  22. */
  23. exports.collectionConstructor = ['Array', 'Map', 'Set', 'WeakSet', 'WeakMap'];
  24. exports.writingMethods = [
  25. // array methods
  26. 'copyWithin',
  27. 'fill',
  28. 'pop',
  29. 'push',
  30. 'reverse',
  31. 'set',
  32. 'shift',
  33. 'sort',
  34. 'splice',
  35. 'unshift',
  36. // map, set methods
  37. 'add',
  38. 'clear',
  39. 'delete',
  40. ];
  41. //# sourceMappingURL=collections.js.map