Module

std/uuid/mod.ts>version

Deno standard library
Go to Latest
function version
import { version } from "https://dotland.deno.dev/std@0.149.0/uuid/mod.ts";

Detect RFC version of a UUID.

import { version } from "./mod.ts"

version("d9428888-122b-11e1-b85c-61cd3cbb3210") // 1
version("109156be-c4fb-41ea-b1b4-efe1671c5836") // 4

Parameters

uuid: string

Returns

number