MCPcopy Index your code
hub / github.com/bitpay/bitcore / split

Method split

packages/bitcore-wallet-client/src/lib/api.ts:704–711  ·  view source on GitHub ↗
(str, indexes)

Source from the content-addressed store, hash-verified

702 $.checkArgument(secret);
703
704 const split = (str, indexes) => {
705 const parts = [];
706 indexes.push(str.length);
707 for (let i = 0; i < indexes.length; i++) {
708 parts.push(str.substring(i == 0 ? 0 : indexes[i - 1], indexes[i]));
709 }
710 return parts;
711 };
712
713 try {
714 const secretSplit = split(secret, [22, 74, 75]);

Callers 15

utils.jsFile · 0.80
timestamp.tsFile · 0.80
utils.jsFile · 0.80
deriveChildMethod · 0.80
divToFloatFunction · 0.80
divFunction · 0.80
mulFunction · 0.80
mulFloorFunction · 0.80
mulCeilFunction · 0.80
reverseObjectFunction · 0.80
utils.jsFile · 0.80
transformFunction · 0.80

Calls

no outgoing calls

Tested by 8

transformFunction · 0.64
transformFunction · 0.64
matchCoinIdFromInfoUrlFunction · 0.64
matchCoinContractFunction · 0.64
matchTokenListPlatformIdFunction · 0.64