import { type Str } from "https://deno.land/x/rimbu@1.1.0/typical/index.ts";
const { TakeStrict } = Str;
Returns the first N characters of the given string, or false if the string does not have enough characters.
Examples
Example 1
Example 1
TakeStrict<'abcd', 2> => 'ab'
TakeStrict<'abcd', 5> => false