angular-docs-cn/aio/content/examples/toh-pt4
Shavi Pathania 0fedb57cb0 docs(aio): Clearing array with [] (#20369) (#20395)
Clearing array with setting length to 0 replaced with [] for being short
and marginally efficient. For reference: [] is turned into a sequence of
around 15 machine instructions on x64 (if bump pointer allocation succeeds),
whereas a.length=0 is a C++ runtime function call, which requires 10-100x as
many instructions.
Benedikt Meurer

PR Close #20395
2017-11-16 16:19:35 -06:00
..
e2e docs(aio): update ToH for CLI (#19811) 2017-11-06 10:02:17 -08:00
src docs(aio): Clearing array with [] (#20369) (#20395) 2017-11-16 16:19:35 -06:00
example-config.json docs(aio): rename ToH to match the guide name 2017-04-19 10:28:31 +01:00
plnkr.json docs(aio): rename ToH to match the guide name 2017-04-19 10:28:31 +01:00