doesNotStartWith()
doesNotStartWith(
prefix
): (...args
) =>boolean
Creates a predicate function that determines if a string does not start with a specific prefix.
Parameters
prefix
string
The substring to use as the prefix
Returns
(...
args
):boolean
Parameters
args
...[string
]
Returns
boolean
Remarks
- Pure function with no side effects
- Case-sensitive comparison
- Composed using
not
anddoesStartWith
for functional composition
Example
const doesNotStartWithHttp = doesNotStartWith('http');
doesNotStartWithHttp('https://example.com'); // false
doesNotStartWithHttp('ftp://example.com'); // true