Skip to content

dropLast

Drops the last n elements.

ts
import { dropLast } from '@vielzeug/toolkit';

dropLast([1, 2, 3, 4], 2); // [1, 2]