- Index
- »
- axon
- »
- func:addCols
def
func:addCols
addCols(a, b)
Add grid b as a new set of columns to grid a. If b contains duplicate column names, then they are given auto-generated unique names. If b contains fewer rows then a, then the missing cells are filled with null.
Examples:
[{a:0, b:2}, {a:1, b:3}].toGrid.addCols({c:4}.toGrid) readAll(rtu).addCols(readAll(meter))