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

Method unit

types/index.d.ts:5105–5105  ·  view source on GitHub ↗

* Create a unit. Depending on the passed arguments, the function will * create and return a new math.type.Unit object. When a matrix is * provided, all elements will be converted to units. * @param unit The unit to be created

(this: MathJsChain<string>, unit?: string)

Source from the content-addressed store, hash-verified

5103 * @param unit The unit to be created
5104 */
5105 unit(this: MathJsChain<string>, unit?: string): MathJsChain<Unit>
5106 unit(this: MathJsChain<MathNumericType>, unit?: string): MathJsChain<Unit>
5107 unit(this: MathJsChain<MathCollection>): MathJsChain<Unit[]>
5108

Callers 15

cot.test.jsFile · 0.65
mean.test.jsFile · 0.65
std.test.jsFile · 0.65
variance.test.jsFile · 0.65
isBounded.test.jsFile · 0.65
typeof.test.jsFile · 0.65
isInteger.test.jsFile · 0.65
clone.test.jsFile · 0.65
isNumeric.test.jsFile · 0.65
isFinite.test.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected