Row

Row

Instances of Row are returned in the iterator

Constructor

new Row(np)

Creates a row

Parameters:
Name Type Description
np Object

named parameter

Properties
Name Type Description
headers Array.<String>

the order of headers should match that appearing in values

values Array.<Any>

the order of values should match that appearing in headers

calculatedProps Object

keys are header names, returned values are the values for that row. Each value is a function, taking one parameter json

Properties:
Name Type Description
headers Array.<String>

the first row of the data2d passed

values Array.<Any>

the raw row as an array, as it appears in the spreadsheet

idx Number

the row number, 1 indexed

Source: