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

Method join

src/Chain.js:479–484  ·  view source on GitHub ↗

* Joins all elements of an array (or an array-like object) into a chain. * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join * @param {array} elements * @param {string|Chain} [separator] * @return {Chain}

(elements, separator = undefined)

Source from the content-addressed store, hash-verified

477 * @return {Chain}
478 */
479 static join (elements, separator = undefined) {
480 return Chain.wrap(
481 elements
482 .map(element => element.toString())
483 .join(separator))
484 }
485
486 /**
487 * Returns the empty chain constant.

Callers 15

getDescriptionMethod · 0.80
viewMethod · 0.80
translateMethod · 0.80
stringFromCodePointsMethod · 0.80
hexStringFromBytesMethod · 0.80
binaryStringFromBytesMethod · 0.80
updateValueMethod · 0.80
updateMethod · 0.80
performEncodeMethod · 0.80
performTranslateMethod · 0.80
performEncodeMethod · 0.80
performDecodeMethod · 0.80

Calls 2

wrapMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected