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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
export function propFn(searchProperty, obj){ if (!obj) return undefined
return obj[ searchProperty ]}
export function prop(searchProperty, obj){ if (arguments.length === 1) return _obj => prop(searchProperty, _obj)
return propFn(searchProperty, obj)}
rambda

Version Info

Tagged at
2 months ago