UNPKG
cli-legend
Version:
latest (1.0.0)
1.0.0
"A fun command-line rogurelike dungeon game"
github.com/SamparkBhol/roguemaze
SamparkBhol/roguemaze
cli-legend
/
RogueMaze
/
node_modules
/
rxjs
/
dist
/
esm5
/
internal
/
operators
/
partition.js
8 lines
•
296 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ not }
from
'../util/not'
;
import
{ filter }
from
'./filter'
;
export
function
partition
(
predicate, thisArg
) {
return
function
(
source
) {
return
[
filter
(predicate, thisArg)(source),
filter
(
not
(predicate, thisArg))(source)]; }; }
//# sourceMappingURL=partition.js.map