UNPKG
bson-rpc
Version:
latest (0.16.2)
0.16.2
0.16.1
0.16.0
0.15.2
0.15.1
0.15.0
0.12.0
0.11.2
0.11.0
0.10.0
0.9.0
0.8.2
0.8.0
0.7.0
0.5.3
0.5.2
0.5.1
the nodejs version of bson-rpc
github.com/hmisty/bson-rpc-nodejs
hmisty/bson-rpc-nodejs
bson-rpc
/
examples
/
node_modules
/
_p-any@1.1.0@p-any
/
index.js
7 lines
(4 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
'use strict'
;
const
pSome =
require
(
'p-some'
);
module
.
exports
=
(
iterable, opts
) =>
pSome
(iterable,
Object
.
assign
({}, opts, {
count
:
1
})).
then
(
values
=>
values[
0
]);
module
.
exports
.
AggregateError
= pSome.
AggregateError
;