Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

parsePattern

import { parsePattern } from "https://raw.githubusercontent.com/EthanThatOneKid/pomo/main/mod.ts";

parsePattern parses a string of numbers separated by non-digits.

Example pattern: "25w5b25w5b25w25b10"

function parsePattern(pattern: string, scale: number): number[];
§
parsePattern(pattern: string, scale: number): number[]
[src]

§Parameters

§
pattern: string
[src]
§
scale: number
[src]

§Return Type

§
number[]
[src]