MCPcopy
hub / github.com/NeXTs/Clusterize.js / add

Function add

clusterize.js:135–144  ·  view source on GitHub ↗
(where, _new_rows)

Source from the content-addressed store, hash-verified

133 }
134
135 var add = function(where, _new_rows) {
136 var new_rows = isArray(_new_rows)
137 ? _new_rows
138 : [];
139 if( ! new_rows.length) return;
140 rows = where == 'append'
141 ? rows.concat(new_rows)
142 : new_rows.concat(rows);
143 self.insertToDOM(rows, cache);
144 }
145 self.append = function(rows) {
146 add('append', rows);
147 }

Callers 1

ClusterizeFunction · 0.85

Calls 1

isArrayFunction · 0.85

Tested by

no test coverage detected