The functions from src/arrays in the d3 repo