CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_stringSize.js19 linesDownload Raw Back to lodash
1var asciiSize = require('./_asciiSize'),2    hasUnicode = require('./_hasUnicode'),3    unicodeSize = require('./_unicodeSize');4 5/**6 * Gets the number of symbols in `string`.7 *8 * @private9 * @param {string} string The string to inspect.10 * @returns {number} Returns the string size.11 */12function stringSize(string) {13  return hasUnicode(string)14    ? unicodeSize(string)15    : asciiSize(string);16}17 18module.exports = stringSize;19 
basant307/AI_Governance_Project · CoolFace