@unction/recordfromentity
v9.0.0
Published
Takes a keyed functor that looks like an entity (keys are pointers to both keys and values) and turns them into an non-entity record
Downloads
34
Readme
@unction/recordFromEntity
KeyChainType => KeyChainType => KeyedFunctorType => RecordType
Takes a keyed functor that looks like an entity (keys are pointers to both keys and values) and turns them into an non-entity record.
recordFromEntity(
["name"]
)(
["value"]
)(
{
name: "id",
value: "application"
}
)
which returns
{
id: "application"
}