Skip to main content
Module

x/fae/prepend.ts>prepend

A functional module for Deno inspired from Ramda.
Latest
variable prepend
import { prepend } from "https://deno.land/x/fae@v1.1.1/prepend.ts";

Add the el to the start of list and returns new list without affecting original

 Fae.prepend('tests', ['write', 'more']); //=> [''tests', ''write', 'more']
 Fae.prepend('tests', []); //=> ['tests']
 Fae.prepend(['tests'], ['write', 'more']); //=> [['tests'], 'write', 'more']

type

Prepend