MendsWith
Bun

method

ffi.CString.endsWith

searchString: string,
endPosition?: number
): boolean;

Returns true if the sequence of elements of searchString converted to a String is the same as the corresponding elements of this object (converted to a String) starting at endPosition – length(this). Otherwise returns false.