FunctionContext

most-data/functions~ FunctionContext

new FunctionContext(contextopt, modelopt, targetopt)

Parameters:
Name Type Attributes Description
context DataContext <optional>
model DataModel <optional>
target * <optional>
Source:

Members

context :DataContext

Type:
Source:

model :DataModel

Type:
Source:

target :*

Type:
  • *
Source:

Methods

chars(length) → {Promise|*}

Parameters:
Name Type Description
length number
Source:
Returns:
Type
Promise | *

int(min, max) → {Promise|*}

Generates a random integer value between the given minimum and maximum value
Parameters:
Name Type Description
min number
max number
Source:
Returns:
Type
Promise | *

me() → {Promise|*}

Source:
Returns:
Type
Promise | *

newGuid() → {Promise|*}

Source:
Returns:
Type
Promise | *

newid() → {Promise|*}

Source:
Returns:
Type
Promise | *

now() → {Promise|*}

Source:
Returns:
Type
Promise | *

password(length) → {Promise|*}

Parameters:
Name Type Description
length number
Source:
Returns:
Type
Promise | *

today() → {Promise|*}

Source:
Returns:
Type
Promise | *

user() → {Promise|*}

Source:
Returns:
Type
Promise | *