Skip to main content
Module

x/rambda/source/insertAll.js

Faster and smaller alternative to Ramda
Go to Latest
File
import { curry } from './curry';
export function insertAllFn(index, listToInsert, list) { return [...list.slice(0, index), ...listToInsert, ...list.slice(index)];}
export const insertAll = curry(insertAllFn);