Example 1 — Ends With Target
Official docs: "abc" ends with "c".
_.endsWith("abc", "c");
// → true How It Works
- Default end. Position is the full length (
3). - Slice. Last character is
"c". - Compare. Matches target →
true. - Docs. Matches the first official example.

