MCPcopy
hub / github.com/josdejong/mathjs / myFunction

Function myFunction

test/unit-tests/expression/parse.test.js:1984–1995  ·  view source on GitHub ↗
(args, _math, _scope)

Source from the content-addressed store, hash-verified

1982 it('should always pass a Map as scope to a rawArgs function', function () {
1983 const myMath = math.create()
1984 function myFunction (args, _math, _scope) {
1985 return {
1986 type: isObjectWrappingMap(_scope)
1987 ? 'ObjectWrappingMap'
1988 : isPartitionedMap(_scope)
1989 ? 'PartitionedMap'
1990 : isMap(_scope)
1991 ? 'Map'
1992 : 'unknown',
1993 scope: _scope
1994 }
1995 }
1996 myFunction.rawArgs = true
1997 myMath.import({ myFunction })
1998

Callers

nothing calls this directly

Calls 3

isObjectWrappingMapFunction · 0.90
isPartitionedMapFunction · 0.90
isMapFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…