import {mapObjIndexed} from 'rambda'
const obj = {a: 1, b: 2, c: 3}
describe('R.mapObjIndexed', () => { it('without type transform', () => { const result = mapObjIndexed((x, prop, obj) => { x prop obj return x + 2 }, obj) result }) it('without type transform - curried', () => { const result = mapObjIndexed<number>((x, prop, obj) => { x prop obj return x + 2 })(obj) result }) it('change of type', () => { const result = mapObjIndexed((x, prop, obj) => { x prop obj return String(x + 2) }, obj) result }) it('change of type - curried', () => { const result = mapObjIndexed<number, string>((x, prop, obj) => { x prop obj return String(x + 2) })(obj) result })})