Getting/Keeping only the first item of an array: length VS splice VS slice (version: 0)
Based on https://stackoverflow.com/questions/39510821/how-to-remove-all-element-from-array-except-the-first-one-in-javascript. All results should output "a" in the console using console.log(arr).
Comparing performance of: length vs splice vs slice
Memory measurements supported only in Chrome.
For precise memory measurements Chrome must be launched with --enable-precise-memory-info flag.
More information: Monitoring JavaScript Memory