Promise.any

Implement Promise.any behavior. It resolves when any input promise resolves, or rejects if all promises reject.

Examples
Input: [[{},{}]]
Output: 2
Hints

Promise.any

Implement Promise.any() which resolves when any of the input elements are resolved.