The functions from src/format in the d3 repo