flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
18
VISUALIZACION/node_modules/lodash/_stringSize.js
generated
vendored
Executable file
18
VISUALIZACION/node_modules/lodash/_stringSize.js
generated
vendored
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
var asciiSize = require('./_asciiSize'),
|
||||
hasUnicode = require('./_hasUnicode'),
|
||||
unicodeSize = require('./_unicodeSize');
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
|
||||
module.exports = stringSize;
|
||||
Loading…
Add table
Add a link
Reference in a new issue