Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function first(arr, count = 1, options) { return some(arr, { count, ...options }); }
Wait for a specified number of promises to be fulfilled