MCPcopy Create free account
hub / github.com/cryptii/cryptii / addBricks

Method addBricks

src/Pipe.js:219–222  ·  view source on GitHub ↗

* Adds multiple bricks to the end of the pipe. * Convenience method calling Pipe.spliceBricks internally. * @param {Brick[]|object[]} bricks Brick instances or serialized brick * objects to be added to the pipe * @return {Pipe} Fluent interface

(bricks)

Source from the content-addressed store, hash-verified

217 * @return {Pipe} Fluent interface
218 */
219 addBricks (bricks) {
220 this.spliceBricks(-1, 0, bricks)
221 return this
222 }
223
224 /**
225 * Inserts a copy of given brick into the pipe.

Callers 1

extractMethod · 0.95

Calls 1

spliceBricksMethod · 0.95

Tested by

no test coverage detected