Benchmarks tagged "array"
Recursively Flatten an Array
This is an interesting problem, since most solutions rely on recursion, but it can also be solved in...
By: developitMitt handers: array vs. set
Mitt Array implementation taken from: https://github.com/developit/mitt/blob/e77a42cdeca3f4c484f82a3...
By: simeontdwtf finding smallest value in array
really more of a test about the spread operator in native functions var smallest = Math.min(...arra...
By: jonmcoreChecking if an item exists in an array
Comparison of various methods of checking if a given item exists within an array.
By: willsArray iteration speed benchmark
Does the type of array effect iteration speed. How about the type of iteration.
By: mynameisrafeArray intersection
Finds the intersection of the items that are available in all the provided arrays.
By: robinmalfaitaccessing two-dimensional array w/ & w/o intermediate variable
When accessing a two-dimensional array two times, is it better to create an intermediate variable fo...
By: danielFlatten an Array and Merge Adjacent Strings
Flatten a potentially infinitely-nested Array of strings/objects/numbers/etc, merging any adjacent s...
By: developitArray flattening
Test if it is faster to flat an array with flat native function or recursive generator function call...
By: cristianfalcone