doesNotEndWith()
doesNotEndWith(
suffix
): (...args
) =>boolean
Creates a predicate function that determines if a string does not end with a specific suffix.
Parameters
suffix
string
The substring to use as the suffix
Returns
(...
args
):boolean
Parameters
args
...[string
]
Returns
boolean
Remarks
- Pure function with no side effects
- Case-sensitive comparison
Example
const isJsFile = doesNotEndWith('.js');
isJsFile('app.js'); // false
isJsFile('style.css'); // true