Buckets:
| /** | |
| * Check to see if a value is Thenable. | |
| * | |
| * @param promise the maybe-thenable value | |
| * @returns true if the value is thenable | |
| */ | |
| export function isThenable<T = unknown>( | |
| promise: Promise<T> | T | |
| ): promise is Promise<T> { | |
| return ( | |
| promise !== null && | |
| typeof promise === 'object' && | |
| 'then' in promise && | |
| typeof promise.then === 'function' | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 370 Bytes
- Xet hash:
- 884cb01fb8d0ff27776009d414efe95bcff18d680f99c66bb71396fa7f257bd6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.