UNPKG
vtk.js-custom-jhonny
Version:
latest (32.8.1-custom.8t)
32.8.1-custom.8t
32.8.1-custom.7
32.8.1-custom.6
32.8.1-custom.5
32.8.1-custom.4
32.8.1-custom.3
32.8.1-custom.2
32.8.1-custom.1
Visualization Toolkit for the Web
github.com/kitware/vtk-js
Kitware/vtk-js
vtk.js-custom-jhonny
/
Common
/
Core
/
ClassHierarchy.js
14 lines
(12 loc)
•
296 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* eslint-disable prefer-rest-params */
class
ClassHierarchy
extends
Array
{
push
(
) {
for
(
let
i =
0
; i <
arguments
.
length
; i++) {
if
(!
this
.
includes
(
arguments
[i])) {
super
.
push
(
arguments
[i]); } }
return
this
.
length
; } }
export
{
ClassHierarchy
as
default
};