Sha256: 8aa33808ed188e825125d8fb0abaf638b5eacc4e312ea068e2d05cc37321b52b

Contents?: true

Size: 444 Bytes

Versions: 93

Compression:

Stored size: 444 Bytes

Contents

var trimmedEndIndex = require('./_trimmedEndIndex');

/** Used to match leading whitespace. */
var reTrimStart = /^\s+/;

/**
 * The base implementation of `_.trim`.
 *
 * @private
 * @param {string} string The string to trim.
 * @returns {string} Returns the trimmed string.
 */
function baseTrim(string) {
  return string
    ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
    : string;
}

module.exports = baseTrim;

Version data entries

93 entries across 92 versions & 8 rubygems

Version Path
appmap-0.65.0 ./node_modules/lodash/_baseTrim.js
trusty-cms-4.3.4 node_modules/lodash/_baseTrim.js
appmap-0.64.0 ./node_modules/lodash/_baseTrim.js
appmap-0.63.0 ./node_modules/lodash/_baseTrim.js
jekyll-esm-0.0.3 node_modules/lodash/_baseTrim.js
trusty-cms-4.3.3 node_modules/lodash/_baseTrim.js
trusty-cms-4.3.2 node_modules/lodash/_baseTrim.js
trusty-cms-4.3.1 node_modules/lodash/_baseTrim.js
trusty-cms-4.2.3 node_modules/lodash/_baseTrim.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/lodash/_baseTrim.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/lodash/_baseTrim.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/lodash/_baseTrim.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/lodash/_baseTrim.js