Skip to content

umbrella-operator should accept a function #87

@RayBenefield

Description

@RayBenefield

Sometimes I want to put the object under a key based on something in the object.

transmute({ name: 'testing' })
	.under(({ name }) => name))
	.then(console.log)

/* Outputs:
{
    testing: {
        name: 'testing'
    }
}
*/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions