Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Return [slice, slice] solution in Clear category for Split List by alexerisov
function splitList(values) {
return [
values.slice(0, Math.ceil(values.length/2)),
values.slice(Math.ceil(values.length/2))
];
}
July 8, 2020