From 0aa7a62dc37f344d4407b205ff659915f0c6802c Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 10 Jan 2017 17:48:38 -0800 Subject: [PATCH] Simplify `asciiSize`. --- .internal/asciiSize.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.internal/asciiSize.js b/.internal/asciiSize.js index 6ebee370c..9517bdc62 100644 --- a/.internal/asciiSize.js +++ b/.internal/asciiSize.js @@ -1,5 +1,3 @@ -import baseProperty from './.internal/baseProperty.js'; - /** * Gets the size of an ASCII `string`. * @@ -7,6 +5,8 @@ import baseProperty from './.internal/baseProperty.js'; * @param {string} string The string inspect. * @returns {number} Returns the string size. */ -const asciiSize = baseProperty('length'); +function asciiSize({ length }) { + return length; +} export default asciiSize;