Strip extra whitespace from both ends of the string, and remove line breaks anywhere in the string.
Compatible implementation of String.prototype.trim()
. Strips whitespace
from the beginning and end of the string, but doesn't remove any
whitespace inside the string like strip()
does.
Combine the properties of both objects into one. The properties from object 'b' are inserted into 'a'.
Count the number of real words in a string.
Stip special characters out of a string.
Escape a string for a regexp.
Determine whether a trigger is atomic.
Formats a string according to one of the following types: - formal - sentence - uppercase - lowercase
Parse a string and return shell-like arguments as an array. Normally this means each word in the string becomes an item in the result, but quoted sections of the input will come back as a single item.
Example:
console.log( parseCallArgs('please google "writing chat bot"'));
// ["please", "google", "writing chat bot"]
Clone an object.
Finds a match in a string at a given index
Usage: string = "My name is Rive" match = " " index = 2 return = 7
Summary: It will look for a second space in the string