Miso.Dataset. Product

new Product ( options )

A Miso.Product is a single computed value that can be obtained from a Miso.Dataset. When a dataset is syncable, it will be an object that one can subscribe to the changes of. Otherwise, it returns the actual computed value.

Parameters

  • options Object optional
    Properties
    • func function required

      the function that derives the computation

    • columns mixed required

      the columns from which the function derives the computation

Source

Methods

<static> Dataset.Product.define ( func )

Returns: function

Use this method to define a new product.

You can edit the code in this block and rerun it.

Parameters

  • func function required

    The function which will be wrapped to create a product. Function signature is function(columns, options)

Returns

Type: function
Source

type ( )

Returns

the type of product this is (numeric, time etc.) Matches the name of one of the Miso.types.

Source

val ( )

Returns: mixed
You can edit the code in this block and rerun it.

Returns

the raw value of the product, most likely a number

Type: mixed
Source