mathjs/docs/reference/classes/resultset.md
2016-03-07 16:12:56 +01:00

2.4 KiB

layout
default

ResultSet #

* [new ResultSet(entries)](#new_ResultSet_new) * _instance_ * [.valueOf()](#ResultSet+valueOf) ⇒ Array * [.toString()](#ResultSet+toString) ⇒ string * [.toJSON()](#ResultSet+toJSON) ⇒ Object * _static_ * [.fromJSON(json)](#ResultSet.fromJSON) ⇒ [ResultSet](#ResultSet)

new ResultSet(entries) #

A ResultSet contains a list or results
Param Type
entries Array

resultSet.valueOf() ⇒ Array #

Returns the array with results hold by this ResultSet

Kind: instance method of ResultSet
Returns: Array - entries

resultSet.toString() ⇒ string #

Returns the stringified results of the ResultSet

Kind: instance method of ResultSet
Returns: string - string

resultSet.toJSON() ⇒ Object #

Get a JSON representation of the ResultSet

Kind: instance method of ResultSet
Returns: Object - Returns a JSON object structured as: {"mathjs": "ResultSet", "entries": [...]}

ResultSet.fromJSON(json) ⇒ [ResultSet](#ResultSet) #

Instantiate a ResultSet from a JSON object

Kind: static method of ResultSet

Param Type Description
json Object A JSON object structured as: {"mathjs": "ResultSet", "entries": [...]}