TenantAtlas/apps/platform/.pnpm-store/v10/files/36/638ef87fc8b5c9e197a367786608d5b5580e967430ca31fad80db0bfd1a5bddb34d9ecf37622229b8f033a8d15d49d8217d5a322186e65d816377622fc3307
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

10 lines
463 B
Plaintext

import { operate } from '../util/lift';
import { createOperatorSubscriber } from './OperatorSubscriber';
export function skipWhile(predicate) {
return operate(function (source, subscriber) {
var taking = false;
var index = 0;
source.subscribe(createOperatorSubscriber(subscriber, function (value) { return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); }));
});
}
//# sourceMappingURL=skipWhile.js.map