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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import { cloneList } from './_internals/cloneList.js'
export function append(x, input){ if (arguments.length === 1) return _input => append(x, _input)
if (typeof input === 'string') return input.split('').concat(x)
const clone = cloneList(input) clone.push(x)
return clone}
rambda

Version Info

Tagged at
2 months ago