MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / variationExists

Method variationExists

lib/theme-config.js:186–188  ·  view source on GitHub ↗

* Check if the variation exists * @returns {boolean}

(variationIndex)

Source from the content-addressed store, hash-verified

184 * @returns {boolean}
185 */
186 async variationExists(variationIndex) {
187 return inRange(variationIndex, 0, await this.getVariationCount());
188 }
189
190 /**
191 * Check if the config.json file exists

Callers 1

Calls 1

getVariationCountMethod · 0.95

Tested by

no test coverage detected