Tests if two strings are inequal.
Install
Install all functions of strman
yarn add strman
or just the inequal function
yarn add strman.inequal
Usage
import { inequal } from 'strman'
// OR
import inequal from 'strman.inequal'
Parameters:
Name | Type | Description |
---|---|---|
stringA |
String | String for the comparative |
stringB |
String | String to be compared |
- Source:
Returns:
[stringA] is inequal [stringB]
- Type
- Boolean
Example
inequal('foo', 'foo')
// => false
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
value |
String | The String! |
||
needle |
String | Value to search. |
||
offset |
Number |
<optional> |
0 | Offset to search. |
caseSensitive |
Boolean |
<optional> |
true | if you use caseSensitive to test. |
- Source:
Returns:
Return position of the first occurrence of 'needle'.
- Type
- Number
Example
indexOf('strman', 'man')
// => 3