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

نووسراو ببینە
1
2
3
4
5
6
7
8
export function prepend(x, input){ if (arguments.length === 1) return _input => prepend(x, _input)
if (typeof input === 'string') return [ x ].concat(input.split(''))
return [ x ].concat(input)}
rambda

Version Info

Tagged at
2 months ago