mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 01:17:50 +00:00
Add related function for each module. [closes #2932]
This commit is contained in:
committed by
John-David Dalton
parent
b856263af6
commit
401016d260
@@ -28,6 +28,7 @@ const reFlags = /\w*$/;
|
||||
* @param {string} [options.omission='...'] The string to indicate text is omitted.
|
||||
* @param {RegExp|string} [options.separator] The separator pattern to truncate to.
|
||||
* @returns {string} Returns the truncated string.
|
||||
* @see replace
|
||||
* @example
|
||||
*
|
||||
* truncate('hi-diddly-ho there, neighborino');
|
||||
|
||||
Reference in New Issue
Block a user