Buckets:
| export function lazy<T>(fn: () => T) { | |
| let value: T | undefined | |
| let loaded = false | |
| return (): T => { | |
| if (loaded) return value as T | |
| loaded = true | |
| value = fn() | |
| return value as T | |
| } | |
| } | |
Xet Storage Details
- Size:
- 205 Bytes
- Xet hash:
- f75db5b8d691d4200533acba1c27e69ff9c313c3e64612c4eb0f03a0b364d3cb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.