MCPcopy Index your code
hub / github.com/microsoft/SandDance / startsWith

Function startsWith

docs/app/js/sanddance-app.js:6152–6164  ·  view source on GitHub ↗
(whole, part)

Source from the content-addressed store, hash-verified

6150 return true;
6151}
6152function startsWith(whole, part) {
6153 if (!part) return true;
6154 let arrs = [
6155 whole,
6156 part
6157 ].map((0, _group.ensureSearchExpressionGroupArray));
6158 let [wholeArray, partArray] = arrs;
6159 if (partArray.length > wholeArray.length) return false;
6160 for(let i = 0; i < partArray.length; i++){
6161 if (!compareGroup(wholeArray[i], partArray[i])) return false;
6162 }
6163 return true;
6164}
6165
6166},{"./group":"1mCdR","@parcel/transformer-js/src/esmodule-helpers.js":"jA2du"}],"1mCdR":[function(require,module,exports) {
6167var parcelHelpers = require("@parcel/transformer-js/src/esmodule-helpers.js");

Callers

nothing calls this directly

Calls 1

compareGroupFunction · 0.70

Tested by

no test coverage detected