last-place-of
Version:
Return the last place of a given input in a given value.
21 lines (14 loc) • 509 B
Markdown
# lastPlaceOf
Return the last place of a given input in a given value.
**Usage:** `lastPlaceOf<T>(target: string | Array<T>, searchValue: string | T, startSearchFrom?: number): number`
```typescript
import { lastPlaceOf } from 'last-place-of'
lastPlaceOf('abca', 'a')
// Output: 4
lastPlaceOf([1,2,3,1], 1)
// Output: 4
lastPlaceOf([1,2,3,4], 6)
// Output: 0
```
<!-- *keywords [] *keywordsend -->
This module exported from [utilizes](https://www.npmjs.com/package/utilizes) project.