OwlCyberSecurity - MANAGER
Edit File: _stringSize.js
import asciiSize from './_asciiSize.js'; import hasUnicode from './_hasUnicode.js'; import unicodeSize from './_unicodeSize.js'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * Gets the number of symbols in `string`. * * @private * @param {string} string The string to inspect. * @returns {number} Returns the string size. */ function stringSize(string) { return hasUnicode(string) ? unicodeSize(string) : asciiSize(string); } export default stringSize;