Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
requiring text-utils
let textUtils = require('@redsift/text-utilities');
// ...
let counts = => {
let text = value.textBody || value.strippedHtmlBody || '';
let count = textUtils.splitWords(textUtils.trimEmailThreads(text)).length;
return count;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment