mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-27 14:57:44 +03:00
docs(endsWith): Update endsWith.md (#339)
Fix wrong returns in Examples. Co-authored-by: Sojin Park <raon0211@toss.im>
This commit is contained in:
parent
6f559c5b4c
commit
a4b77c01dd
@ -29,8 +29,8 @@ function endsWith(str: string, target: string, position: number = 0): string;
|
||||
```typescript
|
||||
import { endsWith } from 'es-toolkit/string';
|
||||
|
||||
endsWith('fooBar', 'foo') // returns true
|
||||
endsWith('fooBar', 'Bar') // returns false
|
||||
endsWith('fooBar', 'foo') // returns false
|
||||
endsWith('fooBar', 'Bar') // returns true
|
||||
endsWith('fooBar', 'abcdef') // returns false
|
||||
endsWith('fooBar', 'foo', 3) // returns true
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user