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