CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_stringToArray.js19 linesDownload Raw Back to lodash
1var asciiToArray = require('./_asciiToArray'),2    hasUnicode = require('./_hasUnicode'),3    unicodeToArray = require('./_unicodeToArray');4 5/**6 * Converts `string` to an array.7 *8 * @private9 * @param {string} string The string to convert.10 * @returns {Array} Returns the converted array.11 */12function stringToArray(string) {13  return hasUnicode(string)14    ? unicodeToArray(string)15    : asciiToArray(string);16}17 18module.exports = stringToArray;19 
basant307/AI_Governance_Project · CoolFace