• Returns the reversed rgb color from the given color

    Parameters

    • Optionalrgb: string | [r: number, g: number, b: number]

      the rgb color to inspect

    Returns string | undefined

    the reversed rgb color from the given color

    reverseRgb('rgb(0, 0, 0)');    // 'rgb(255, 255, 255)'
    reverseRgb([255, 255, 255]); // 'rgb(0, 0, 0)'