Skip to content

unctionjs/prepend

Repository files navigation

@unction/prepend

Tests Stability Dependencies

A => Array<A | B> | string => Array<A | B> | string

Takes a value and puts it at the beginning of the given list.

prepend(4)([5]) // => [4, 5]
prepend("c")("ab") // => "cab"