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

Method indexOfCodePoint

src/Chain.js:279–281  ·  view source on GitHub ↗

* Returns the first index at which a given code point can be found * and -1 if not found. * @param {number} codePoint Unicode code point to search for * @param {number} [start] Index to start the search at * @return {number} Code point index; -1 if not found

(codePoint, start = undefined)

Source from the content-addressed store, hash-verified

277 * @return {number} Code point index; -1 if not found
278 */
279 indexOfCodePoint (codePoint, start = undefined) {
280 return this.getCodePoints().indexOf(codePoint, start)
281 }
282
283 /**
284 * Returns the first index at which a given string can be found

Callers 7

performTranslateMethod · 0.80
performTranslateMethod · 0.80
performTranslateMethod · 0.80
performTranslateMethod · 0.80

Calls 2

getCodePointsMethod · 0.95
indexOfMethod · 0.80

Tested by

no test coverage detected