Core & Utilities
Data & State
Frontend & Logic
Architecture & Security
Appearance
Drops the last n elements.
import { dropLast } from '@vielzeug/toolkit'; dropLast([1, 2, 3, 4], 2); // [1, 2]