josdejong/mathjs

Define custom help objects

Open

#2,047 创建于 2020年12月1日

在 GitHub 查看
 (14 评论) (1 反应) (0 负责人)JavaScript (1,298 fork)batch import
featurehelp wanted

仓库指标

Star
 (13,832 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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?

贡献者指南