* Returns an instance of WrappedValue. The actual instance is get from a WrappedValues pool. * @param value - Value that should be wrapped.
(value: any)
| 78 | * @param value - Value that should be wrapped. |
| 79 | */ |
| 80 | public static wrap(value: any): any { |
| 81 | const w = _wrappedValues[_wrappedIndex++ % 5]; |
| 82 | w.wrapped = value; |
| 83 | |
| 84 | return w; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | const _wrappedValues = [new WrappedValue(null), new WrappedValue(null), new WrappedValue(null), new WrappedValue(null), new WrappedValue(null)] as const; |
no outgoing calls
no test coverage detected