Sha256: 8aa33808ed188e825125d8fb0abaf638b5eacc4e312ea068e2d05cc37321b52b

Contents?: true

Size: 444 Bytes

Versions: 92

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

92 entries across 91 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.38 node_modules/lodash/_baseTrim.js
immosquare-cleaner-0.1.32 node_modules/lodash/_baseTrim.js
immosquare-cleaner-0.1.31 node_modules/lodash/_baseTrim.js
immosquare-cleaner-0.1.30 node_modules/lodash/_baseTrim.js
immosquare-cleaner-0.1.29 node_modules/lodash/_baseTrim.js
immosquare-cleaner-0.1.28 node_modules/lodash/_baseTrim.js
immosquare-cleaner-0.1.27 node_modules/lodash/_baseTrim.js
immosquare-cleaner-0.1.26 node_modules/lodash/_baseTrim.js
immosquare-cleaner-0.1.25 node_modules/lodash/_baseTrim.js
immosquare-cleaner-0.1.24 node_modules/lodash/_baseTrim.js
immosquare-cleaner-0.1.23 node_modules/lodash/_baseTrim.js
reed_sdk-1.0.1 node_modules/lodash/_baseTrim.js
reed_sdk-1.0.0 node_modules/lodash/_baseTrim.js
trusty-cms-5.0.7 node_modules/lodash/_baseTrim.js
appmap-0.72.2 ./node_modules/lodash/_baseTrim.js
trusty-cms-5.0.6 node_modules/lodash/_baseTrim.js
appmap-0.72.1 ./node_modules/lodash/_baseTrim.js
appmap-0.72.0 ./node_modules/lodash/_baseTrim.js
trusty-cms-5.0.5 node_modules/lodash/_baseTrim.js
trusty-cms-5.0.4 node_modules/lodash/_baseTrim.js