PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@cosmjs/stargate/node_modules/protobufjs/cli/node_modules/lodash
Просмотр файла: _baseTrim.js
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;
Выполнить команду
Для локальной разработки. Не используйте в интернете!