How to use p-some - 1 common examples

To help you get started, we’ve selected a few p-some examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shannonmoeller / ygor / packages / list / src / list.js View on Github external
function first(arr, count = 1, options) {
	return some(arr, { count, ...options });
}

p-some

Wait for a specified number of promises to be fulfilled

MIT
Latest version published 3 years ago

Package Health Score

65 / 100
Full package analysis

Popular p-some functions