UNPKG

svcorelib

Version:

Core library used in the projects of Sv443 and the Sv443 Network. Contains tons of miscellaneous QoL features.

13 lines (9 loc) 296 B
const splitIntoParts = require("./splitIntoParts"); /** @param {any[]} arr */ function halves(array) { if(!Array.isArray(array)) throw new TypeError("Invalid argument 'array' provided in halves()"); return splitIntoParts(array, 2, true); } module.exports = halves;