Skip to main content
Module

x/unitest/deps.ts>isHexColor

🃏 Deno-first universal unit testing framework
Latest
function isHexColor
import { isHexColor } from "https://deno.land/x/unitest@v1.0.0-beta.82/deps.ts";

Whatever argument is Hex color of 3 or 6 digits format or not

isHexColor("#000000") // true
isHexColor("#FFF") // true
isHexColor("#ggg") // false

Parameters

value: string

Returns

boolean