Core Primitives
Data Layer
UI Components
Forms & Validation
App Infrastructure
Utilities & Tools
Appearance
You need to check whether a string ends with a given suffix in a pipeline-friendly way.
Use endsWith(value, suffix) to return a boolean.
endsWith(value, suffix)
import { endsWith } from '@vielzeug/arsenal'; endsWith('hello.ts', '.ts'); // true endsWith('hello.js', '.ts'); // false