Back to Mathjs

Resultset

docs/reference/classes/resultset.md

15.2.01.7 KB
Original Source

<a name="ResultSet"></a>

ResultSet

<a name="new_ResultSet_new"></a>

new ResultSet(entries)

A ResultSet contains a list or results

ParamType
entries<code>Array</code>

<a name="ResultSet+valueOf"></a>

resultSet.valueOf() ⇒ <code>Array</code>

Returns the array with results hold by this ResultSet

Kind: instance method of <code>ResultSet</code>
Returns: <code>Array</code> - entries
<a name="ResultSet+toString"></a>

resultSet.toString() ⇒ <code>string</code>

Returns the stringified results of the ResultSet

Kind: instance method of <code>ResultSet</code>
Returns: <code>string</code> - string
<a name="ResultSet+toJSON"></a>

resultSet.toJSON() ⇒ <code>Object</code>

Get a JSON representation of the ResultSet

Kind: instance method of <code>ResultSet</code>
Returns: <code>Object</code> - Returns a JSON object structured as: {"mathjs": "ResultSet", "entries": [...]}
<a name="ResultSet.fromJSON"></a>

ResultSet.fromJSON(json) ⇒ <code>ResultSet</code>

Instantiate a ResultSet from a JSON object

Kind: static method of <code>ResultSet</code>

ParamTypeDescription
json<code>Object</code>A JSON object structured as: {"mathjs": "ResultSet", "entries": [...]}