angular/packages
Alan Agius 146d2ee246 refactor(compiler): replace flatten and map with flatMap. (#48378)
Replace custom `flatten` and `map` with native `flatMap` usage.

Benchmark:
| Test case name 	| Result                                                 	|
|----------------	|--------------------------------------------------------	|
| flatten & map  	| flatten & map x 1,182 ops/sec ±2.18% (63 runs sampled) 	|
| flatMap        	| flatMap x 6,011 ops/sec ±0.91% (35 runs sampled)       	|

The fact that `flatMap` is faster is also highlighted in https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flatMap

PR Close #48378
2022-12-07 09:08:25 -08:00
..
animations build: reformat BUILD files (#48181) 2022-11-22 21:22:34 +00:00
bazel feat(core): support TypeScript 4.9 (#48005) 2022-12-06 10:45:33 -08:00
benchpress build: update cross-repo angular dependencies (#47882) 2022-12-06 12:48:11 -08:00
common refactor(common): remove unused setDOM (#48357) 2022-12-05 14:35:08 -08:00
compiler refactor(compiler): replace flatten and map with flatMap. (#48378) 2022-12-07 09:08:25 -08:00
compiler-cli build: update all non-major dependencies (#48372) 2022-12-06 11:06:39 -08:00
core fix(core): unable to inject ChangeDetectorRef inside host directives (#48355) 2022-12-07 09:06:46 -08:00
docs docs: fix packages\docs\di\di.md (#46704) 2022-07-08 17:53:39 +00:00
elements build(bazel): create AIO example playgrounds for manual testing 2022-11-22 13:51:16 -07:00
examples build(bazel): add bazel targets for aio doc generation 2022-11-22 13:51:16 -07:00
forms refactor(forms): make FormBuilder classes provided in root (#48245) 2022-12-06 13:29:41 -08:00
language-service refactor(language-service): make selector nullable (#48193) 2022-11-23 09:27:03 -08:00
localize build: reformat BUILD files (#48181) 2022-11-22 21:22:34 +00:00
misc/angular-in-memory-web-api build: update angular version of in-memory-web-api (#48218) 2022-11-28 09:13:46 -08:00
platform-browser refactor(platform-browser): simplify flattenStyles method (#48293) 2022-12-02 11:36:13 -08:00
platform-browser-dynamic build: reformat BUILD files (#48181) 2022-11-22 21:22:34 +00:00
platform-server feat(core): support TypeScript 4.9 (#48005) 2022-12-06 10:45:33 -08:00
private/testing feat(core): support TypeScript 4.9 (#48005) 2022-12-06 10:45:33 -08:00
router feat(core): Make the isStandalone() function available in public API (#48114) 2022-12-01 13:21:21 -08:00
service-worker build(bazel): create AIO example playgrounds for manual testing 2022-11-22 13:51:16 -07:00
upgrade build: reformat BUILD files (#48181) 2022-11-22 21:22:34 +00:00
zone.js feat(core): support TypeScript 4.9 (#48005) 2022-12-06 10:45:33 -08:00
BUILD.bazel build(bazel): list docs entrypoints under packages to simplify docgen 2022-11-22 13:51:16 -07:00
circular-deps-test.conf.js build: ignore type only imports/exports for circular dependency checks (#47017) 2022-08-18 12:06:09 -07:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts refactor(core): replace references to goog.LOCALE with goog.getLocale() (#43089) 2021-08-10 10:35:26 -07:00
license-banner.txt build: bump license year (#44590) 2022-01-04 12:05:25 -08:00
README.md
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build.json build: enable useUnknownInCatchVariables (#44679) 2022-02-01 18:17:29 +00:00
tsconfig-legacy-saucelabs.json build: bundle spec files for saucelabs legacy job (#44281) 2021-11-30 11:56:04 -05:00
tsconfig-test.json build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tsconfig-tsec-base.json build: update tsconfigs to use ES2020 as target and module (#43431) 2021-10-01 18:28:42 +00:00
tsconfig.json refactor(bazel): enable typescript strictness flags for package (#47893) 2022-11-01 04:44:28 -07:00
tsec-exemption.json fix(core): hardening attribute and property binding rules for <iframe> elements (#47964) 2022-11-09 00:47:56 -08:00
types.d.ts build: update to jasmine 4.0 (#45558) 2022-04-11 16:25:28 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT