angular/packages/common
arturovt 967488247e refactor(common): simplify stripTrailingSlash (#59746)
The new version of the function is smaller, eliminating extra bytes. The refactor improves both code size and readability while optimizing the implementation. Benchmark results for the old and new implementations are as follows:

```
stripTrailingSlash_old x 15,446,602 ops/sec ±0.89% (66 runs sampled)
stripTrailingSlash_new x 19,694,523 ops/sec ±1.10% (61 runs sampled)
```

Thus, the new implementation is both smaller and faster.

PR Close #59746
2025-02-19 15:20:53 +00:00
..
http feat(common): introduce experimental httpResource (#59876) 2025-02-14 18:40:37 +00:00
locales refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
src refactor(common): simplify stripTrailingSlash (#59746) 2025-02-19 15:20:53 +00:00
test refactor(common): tree-shake PreloadLinkCreator for client bundles (#59431) 2025-01-24 17:17:58 +01:00
testing refactor: remove unnecessary TSLint rule flags (#59365) 2025-01-07 16:06:21 +00:00
upgrade fix(common): clean up urlChanges subscribers when root scope is destroyed (#59703) 2025-02-18 15:40:19 +00:00
BUILD.bazel refactor(platform-server): Add an ssr benchmark setup. (#57647) 2024-10-04 10:45:22 -07:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
package.json build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
PACKAGE.md docs: add api doc to sub-packages (#33801) 2019-11-20 14:48:50 -08:00
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00