* Gets the number of symbols in `string`. * * @private * @param {string} string The string to inspect. * @returns {number} Returns the string size.
(string)
| 11933 | * @returns {number} Returns the string size. |
| 11934 | */ |
| 11935 | function stringSize(string) { |
| 11936 | return hasUnicode(string) |
| 11937 | ? unicodeSize(string) |
| 11938 | : asciiSize(string); |
| 11939 | } |
| 11940 | |
| 11941 | /** |
| 11942 | * Converts `string` to an array. |