prepend :: (Any item, Array input) => Array output
Returns a new Array after adding the item at the beginning of the input array.
Array
import { prepend } from 'conductor' const numbers = [1, 4] prepend(3, numbers) // [3, 1, 4]
Last updated 6 years ago