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

Method _nonBasicCodePointIndex

src/Encoder/Punycode.js:132–134  ·  view source on GitHub ↗

* Returns the first non-basic code point, if any. * @param {number[]} codePoints Code points * @return {number} Index of first non-basic code point or -1, if the code * points are all basic.

(codePoints)

Source from the content-addressed store, hash-verified

130 * points are all basic.
131 */
132 _nonBasicCodePointIndex (codePoints) {
133 return codePoints.findIndex(codePoint => codePoint >= 0x80)
134 }
135}

Callers 2

performEncodeMethod · 0.95
performDecodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected