1.0.1 • Published 5 years ago
substr-word v1.0.1
substr-word
Substr that preserves whole words.
Usage
var substrWord = require('substr-word');
console.log(substrWord('Hello Greetings Goodbye', 20));
//Hello Greetings
Substr that preserves whole words.
var substrWord = require('substr-word');
console.log(substrWord('Hello Greetings Goodbye', 20));
//Hello Greetings