deno.land / x / rambda@v9.1.1 / source / insertAll.js

نووسراو ببینە
1
2
3
4
5
6
7
8
import { curry } from './curry';
export function insertAllFn(index, listToInsert, list) { return [...list.slice(0, index), ...listToInsert, ...list.slice(index)];}
export const insertAll = curry(insertAllFn);
rambda

Version Info

Tagged at
2 months ago