Skip to content

Add support for constants #6

@heokhe

Description

@heokhe

The code should be able to understand constants, such as pi and e.

Or even better, we can provide custom constants using a second argument:

calculate('2x', { x: 5 }) // outputs 10

const timesTwo = calculateCurried('2x')
timesTwo({ x: 5 }) // outputs 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions