UNPKG

yoastseo

Version:

Yoast client-side content analysis

21 lines (19 loc) 581 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = _default; var _getWords = _interopRequireDefault(require("./getWords.js")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } /** @module stringProcessing/countWords */ /** * Calculates the word count of a certain text. * * @param {string} text The text to be counted. * * @returns {number} The word count of the given text. */ function _default(text) { return (0, _getWords.default)(text).length; } //# sourceMappingURL=countWords.js.map