ends-with
v4.17.11arrow_drop_downv4.17.11
STATUS
Passing
DOWNLOADS
13
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
10 months ago
SIZE
2 KB
Checks if `string` ends with the given target string.
1 contributor
Like
Use ends-with in your project ?
Copied
npm i @bit/lodash.lodash.ends-with
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
modifieddraft
chevron_left
chevron_right
endsWith (
string:
string?
,target:
string?
,position:
) : number?
boolean
Checks if string
ends with the given target string.
Example
Arguments
string:
string?
The string to inspect.
target:
string?
The string to search for.
position:
number?
The position to search up to.
Returns
boolean
Returns `true` if `string` ends with `target`, else `false`.