Bump to v4.4.0.

This commit is contained in:
John-David Dalton
2016-04-12 23:55:57 -07:00
parent 04e08670ed
commit fb1f99d9d9
415 changed files with 36968 additions and 4619 deletions

View File

@@ -1,5 +1,5 @@
/**
* lodash 4.3.0 (Custom Build) <https://lodash.com/>
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
* Released under MIT license <https://lodash.com/license>
@@ -7,6 +7,7 @@
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/
var baseSlice = require('lodash._baseslice'),
baseToString = require('lodash._basetostring'),
toString = require('lodash.tostring');
/** Used to match leading and trailing whitespace. */
@@ -167,13 +168,10 @@ function castSlice(array, start, end) {
*/
function trim(string, chars, guard) {
string = toString(string);
if (!string) {
return string;
}
if (guard || chars === undefined) {
if (string && (guard || chars === undefined)) {
return string.replace(reTrim, '');
}
if (!(chars += '')) {
if (!string || !(chars = baseToString(chars))) {
return string;
}
var strSymbols = stringToArray(string),