ansi-styles.js
/*
	This function routes a model to all other models.

	all functions that are routed have a property `.conversion` attached
	to the returned synthetic function. This property is an array
	of strings, each with the steps in between the 'from' and 'to'
	color models (inclusive).

	conversions that are not possible simply are not included.
*/
This function routes a model to all other models.
all functions that are routed have a property `.conversion` attached
to the returned synthetic function. This property is an array
of strings, each with the steps in between the 'from' and 'to'
color models (inclusive).

conversions that are not possible simply are not included.
This function routes a model to all other models . all functions that are routed have a property ` . conversion ` attached to the returned synthetic function . This property is an array of strings each with the steps in between the ' from ' and ' to ' color models ( inclusive ) . conversions that are not possible simply are not included .
function buildGraph() {
	const graph = {};
	const models = Object.keys(conversions);
	for (let len = models.length, i = 0; i < len; i++) {
		graph[models[i]] = {
			distance: -1,
			parent: null
		};
	}
	return graph;
}
function buildGraph ( ) { const graph = { } ; const models = Object . keys ( conversions ) ; for ( let len = models . length , i = 0 ; i < len ; i ++ ) { graph [ models [ i ] ] = { distance : - 1 , parent : null } ; } return graph ; }
This function routes a model to all other models.
This function routes a model to all other models .
// https://jsperf.com/object-keys-vs-for-in-with-closure/3 // http://jsperf.com/1-vs-infinity // micro-opt, but this is simple.