MUNIT
function MUNIT(arg1: number = null): number | string | boolean
Description
Returns the unit matrix for the specified dimension.
Parameters
- arg1
number
null Is an integer specifying the dimension of the unit matrix that you want to return.
Returns
number | string | boolean
Try It
var oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
oWorksheet.GetRange("A1").SetValue(oFunction.MUNIT(3));