import * as prettyBenching from "https://deno.land/x/pretty_benching@v0.3.3/utils.ts";
Functions
How many chars will the string shrink in the console, when rendered, compared to original length An common emoji is 2 chars, and is 2 chars wide when rendered, so lDiff is 0 for it. Of course there are exceptions to this like the alombic. | |
returns an array, that contains each index where the regexp mathes the string | |
f num | |
f perc | |
returns a float value with dynamic precision. for a (5+from) digit number no floating points, for a (4+form) digit one 1 decimal, ... up to 4 decimals | |