trimChar() — drizzle-orm Function Reference
Architecture documentation for the trimChar() function in utils.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 28b894c7_c809_8ecd_6165_49b642904255["trimChar()"] 036f4e7e_88ec_1167_0cc5_711786d91440["utils.ts"] 28b894c7_c809_8ecd_6165_49b642904255 -->|defined in| 036f4e7e_88ec_1167_0cc5_711786d91440 6d53190d_8a8a_da43_2297_417a1bdeaa3d["trimChar()"] 6d53190d_8a8a_da43_2297_417a1bdeaa3d -->|calls| 28b894c7_c809_8ecd_6165_49b642904255 ae4bc88a_1e24_ce7b_ea80_728e39b829ef["schemaToTypeScript()"] ae4bc88a_1e24_ce7b_ea80_728e39b829ef -->|calls| 28b894c7_c809_8ecd_6165_49b642904255 style 28b894c7_c809_8ecd_6165_49b642904255 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/@types/utils.ts lines 19–30
String.prototype.trimChar = function(char: string) {
let start = 0;
let end = this.length;
while (start < end && this[start] === char) ++start;
while (end > start && this[end - 1] === char) --end;
// this.toString() due to ava deep equal issue with String { "value" }
return start > 0 || end < this.length
? this.substring(start, end)
: this.toString();
};
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does trimChar() do?
trimChar() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/@types/utils.ts.
Where is trimChar() defined?
trimChar() is defined in drizzle-kit/src/@types/utils.ts at line 19.
What calls trimChar()?
trimChar() is called by 2 function(s): schemaToTypeScript, trimChar.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free