Skip to main content
Module

x/rambda/props-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {props} from 'rambda'
const obj = {a: 1, b: 2}
describe('R.props', () => { it('happy', () => { const result = props(['a', 'b'], obj)
result // $ExpectType readonly number[] }) it('curried', () => { const result = props(['a', 'b'])(obj)
result // $ExpectType readonly number[] })})