Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 3 lines 122 Bytes
Raw
1 export const half = <T>(arr: T[]): [T[], T[]] => {
2 return [arr.slice(0, arr.length / 2), arr.slice(arr.length / 2)];
3 };