josdejong/mathjs

Define custom help objects

开放

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

 (14 条评论) (1 个反应) (0 位负责人)JavaScript (1,314 个派生)batch import
featurehelp wanted

仓库指标

星标
 (15,065 个星标)
PR 合并指标
 (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?

贡献者指南