josdejong/mathjs

Define custom help objects

Open

#2,047 opened on Dec 1, 2020

 (14 comments) (1 reaction) (0 assignees)JavaScript (1,314 forks)batch import
featurehelp wanted

Repository metrics

Stars
 (15,065 stars)
PR merge metrics
 (PR metrics pending)

Description

For example, if I import a function as follows:

math.import({
  area: function (x, y) {
    return x*y
  }
})

I would like to then define a help object for this new function so I can call math.help("area"). Is this possible?

Contributor guide