StartsWith
The string to check
The target to check
Check if a string starts with another string
A boolean
type Value = 'foobar';type Target = 'foo';type Result = StartsWith<Value, Target>; // true Copy
type Value = 'foobar';type Target = 'foo';type Result = StartsWith<Value, Target>; // true
type Value = 'foobar';type Target = 'bar';type Result = StartsWith<Value, Target>; // false Copy
type Value = 'foobar';type Target = 'bar';type Result = StartsWith<Value, Target>; // false
StartsWith