Options
All
  • Public
  • Public/Protected
  • All
Menu

@modelx/jsonm

Index

References

Model

Renames and exports ModelX

Functions

getGeneratedStatefulFunction

  • getGeneratedStatefulFunction(__namedParameters: GeneratedStatefulFunctionParams): GeneratedStatefulFunction
  • Takes an object that describes a function to be created from a function body string

    example

    getGeneratedStatefulFunction({ variable_name='myFunctionName', function_body='return 3', function_name_prefix='customFunction_', }) => function customFunction_myFunctionName(state){ 'use strict'; return 3; }

    Parameters

    • __namedParameters: GeneratedStatefulFunctionParams

    Returns GeneratedStatefulFunction

sumPreviousRows

  • sumPreviousRows(options: SumPreviousRowsOptions): number
  • Parameters

    • options: SumPreviousRowsOptions

    Returns number