(value)
| 13 | // @pragma Construction |
| 14 | |
| 15 | constructor(value) { |
| 16 | // eslint-disable-next-line no-constructor-return |
| 17 | return value === undefined || value === null |
| 18 | ? emptyStack() |
| 19 | : isStack(value) |
| 20 | ? value |
| 21 | : emptyStack().pushAll(value); |
| 22 | } |
| 23 | |
| 24 | static of(/*...values*/) { |
| 25 | return this(arguments); |
nothing calls this directly
no test coverage detected