Skip to content

Commit 0aa7a62

Browse files
committed
Simplify asciiSize.
1 parent b6bdb23 commit 0aa7a62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.internal/asciiSize.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import baseProperty from './.internal/baseProperty.js';
2-
31
/**
42
* Gets the size of an ASCII `string`.
53
*
64
* @private
75
* @param {string} string The string inspect.
86
* @returns {number} Returns the string size.
97
*/
10-
const asciiSize = baseProperty('length');
8+
function asciiSize({ length }) {
9+
return length;
10+
}
1111

1212
export default asciiSize;

0 commit comments

Comments
 (0)