We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
asciiSize
1 parent b6bdb23 commit 0aa7a62Copy full SHA for 0aa7a62
.internal/asciiSize.js
@@ -1,12 +1,12 @@
1
-import baseProperty from './.internal/baseProperty.js';
2
-
3
/**
4
* Gets the size of an ASCII `string`.
5
*
6
* @private
7
* @param {string} string The string inspect.
8
* @returns {number} Returns the string size.
9
*/
10
-const asciiSize = baseProperty('length');
+function asciiSize({ length }) {
+ return length;
+}
11
12
export default asciiSize;
0 commit comments