josdejong / josdejong/mathjs

`transform` should accept and compose multiple transforms

Open
#2,568 1 comment 0 reactions 0 assignees View on GitHub
feature help wanted
Dominant language
JavaScript
Stars
15.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

Per discussion [here](https://github.com/josdejong/mathjs/discussions/2562), it would be great to be able to pass multiple transforms to the `transform` function and have them be composed

e.g.

```js
myNode.transform(transform1, transform2)
myNode.transform([transform1, transform2])
```

which would be equivalent to

```js
myNode.transform(node => transform1(transform2(node))
```

or

```js
myNode
.transform(transform1)
.transform(transform2)
```

Happy to take this on, just adding a task for it here in the mean time

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.