79451053

Date: 2025-02-19 10:53:42
Score: 0.5
Natty:
Report link

I know I'm late for this question, but how about this one ?

from([1, 34, 65, 3, 7]).pipe(
    filter(item => item > 10),
    isEmpty(),
    map(hasNone => !hasNone),
).subscribe((e) => console.log(e))

It is solely based on RxJS operators, and has the advantage of closing the source as soon as one value passes the test.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: nquincampoix