CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_baseTrim.js20 linesDownload Raw Back to lodash-es
1import trimmedEndIndex from './_trimmedEndIndex.js';2 3/** Used to match leading whitespace. */4var reTrimStart = /^\s+/;5 6/**7 * The base implementation of `_.trim`.8 *9 * @private10 * @param {string} string The string to trim.11 * @returns {string} Returns the trimmed string.12 */13function baseTrim(string) {14  return string15    ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')16    : string;17}18 19export default baseTrim;20 
basant307/AI_Governance_Project · CoolFace