* Given either an array or object of colors, returns an array of * ColorSpec objects (with RGB values). * * @private * @param {Array. |Object} colors An array of hex-based color strings, or * an object mapping color *names* to hex values. * @return {Array.
(colors: Array<string>)
| 69 | * representing the same colors passed in. |
| 70 | */ |
| 71 | function mapColors(colors: Array<string>): Array<ColorSpec> { |
| 72 | return colors.map((color) => createColorSpec(color)); |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * Provides a matcher to find the nearest color based on the provided list of |
no test coverage detected