Deployed the page to Github Pages.
This commit is contained in:
parent
1d79754e93
commit
2c89899458
62797 changed files with 6551425 additions and 15279 deletions
11
node_modules/rxjs/_esm2015/internal/operators/first.js
generated
vendored
Normal file
11
node_modules/rxjs/_esm2015/internal/operators/first.js
generated
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { EmptyError } from '../util/EmptyError';
|
||||
import { filter } from './filter';
|
||||
import { take } from './take';
|
||||
import { defaultIfEmpty } from './defaultIfEmpty';
|
||||
import { throwIfEmpty } from './throwIfEmpty';
|
||||
import { identity } from '../util/identity';
|
||||
export function first(predicate, defaultValue) {
|
||||
const hasDefaultValue = arguments.length >= 2;
|
||||
return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError()));
|
||||
}
|
||||
//# sourceMappingURL=first.js.map
|
Loading…
Add table
Add a link
Reference in a new issue