Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
let { color, scale, count, mode, className, tabIndex, trim } = this.props;
let variations = samples(count)
.map(interpolate(scale(color), mode))
.map(hex);
if (trim) {
variations = variations.slice(1, variations.length - 1);
}
return (