MCPcopy Create free account
hub / github.com/TruthHun/BookStack / stringToArrayLike

Function stringToArrayLike

static/word2md/mammoth.browser.js:14011–14016  ·  view source on GitHub ↗

* Fill in an array with a string. * @param {String} str the string to use. * @param {Array|ArrayBuffer|Uint8Array|Buffer} array the array to fill in (will be mutated). * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array.

(str, array)

Source from the content-addressed store, hash-verified

14009 * @return {Array|ArrayBuffer|Uint8Array|Buffer} the updated array.
14010 */
14011function stringToArrayLike(str, array) {
14012 for (var i = 0; i < str.length; ++i) {
14013 array[i] = str.charCodeAt(i) & 0xFF;
14014 }
14015 return array;
14016}
14017
14018/**
14019 * Transform an array-like object to a string.

Callers 1

mammoth.browser.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected